-
-
Notifications
You must be signed in to change notification settings - Fork 531
/
Copy pathanalysis_options.yaml
53 lines (49 loc) · 1.63 KB
/
analysis_options.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
include: package:lints/recommended.yaml
# Until there are meta linter rules, each desired lint must be explicitly enabled.
# See: https://github.com/dart-lang/linter/issues/288
#
# For a list of lints, see: http://dart-lang.github.io/linter/lints/
# See the configuration guide for more
# https://github.com/dart-lang/sdk/tree/master/pkg/analyzer#configuring-the-analyzer
#
# NOTE: Please keep this file in sync with
# https://github.com/flutter/flutter/blob/master/analysis_options.yaml
analyzer:
language:
strict-casts: true
strict-inference: true
errors:
# treat missing required parameters as a warning (not a hint)
missing_required_param: warning
# allow having TODOs in the code
todo: ignore
# Ignore errors like
# 'super_goes_last' is a deprecated lint rule and should not be used • included_file_warning
included_file_warning: ignore
linter:
rules:
- always_declare_return_types
- avoid_dynamic_calls
- avoid_null_checks_in_equality_operators
- avoid_slow_async_io
- cancel_subscriptions
- deprecated_member_use_from_same_package
- directives_ordering
- implicit_reopen
- invalid_case_patterns
- library_names
- no_adjacent_strings_in_list
- no_literal_bool_comparisons
- no_self_assignments
- omit_local_variable_types
- package_prefixed_library_names
- prefer_const_constructors
- prefer_single_quotes
- prefer_void_to_null
- public_member_api_docs
- sort_child_properties_last
- test_types_in_equals
- throw_in_finally
- unawaited_futures
- unnecessary_statements
- use_full_hex_values_for_flutter_colors