-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathanalysis_options.yaml
47 lines (44 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
# Defines a default set of lint rules enforced for
# projects at Google. For details and rationale,
# see https://github.com/dart-lang/pedantic#enabled-lints.
include: package:pedantic/analysis_options.yaml
# For lint rules and documentation, see http://dart-lang.github.io/linter/lints.
# Uncomment to specify additional rules.
linter:
rules:
omit_local_variable_types: false # 1000+
curly_braces_in_flow_control_structures: false # 29
prefer_single_quotes: false # 595
prefer_interpolation_to_compose_strings: false # 24
library_prefixes: true
unnecessary_const: true
prefer_const_constructors: true
unnecessary_this: true
prefer_const_constructors_in_immutables: true
avoid_equals_and_hash_code_on_mutable_classes: true
prefer_const_declarations: true
use_is_even_rather_than_modulo: true
no_logic_in_create_state: true
annotate_overrides: true
avoid_implementing_value_types: true
avoid_null_checks_in_equality_operators: true
avoid_type_to_string: true
do_not_use_environment: true
hash_and_equals: true
implementation_imports: true
no_adjacent_strings_in_list: true
missing_whitespace_between_adjacent_strings: true
no_duplicate_case_values: true
no_runtimeType_toString: true
prefer_adjacent_string_concatenation: true
prefer_const_literals_to_create_immutables: true
prefer_is_empty: true
prefer_is_not_empty: true
prefer_is_not_operator: true
prefer_iterable_whereType: true
use_key_in_widget_constructors: true
use_string_buffers: true
valid_regexps: true
analyzer:
# exclude:
# - path/to/excluded/files/**