-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathanalysis_options.yaml
52 lines (48 loc) · 1.49 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
include: package:pedantic/analysis_options.1.8.0.yaml
analyzer:
exclude:
- lib/generated/**
strong-mode:
implicit-casts: false
## ##
# Additional linting rules from Effective Dart #
## ##
linter:
rules:
# STYLE
- camel_case_types
- file_names
- non_constant_identifier_names
- constant_identifier_names # prefer
- directives_ordering # prefer
- lines_longer_than_80_chars # avoid
# USAGE
- implementation_imports
- prefer_interpolation_to_compose_strings # prefer
- avoid_function_literals_in_foreach_calls # avoid
- prefer_function_declarations_over_variables
- unnecessary_lambdas
- avoid_init_to_null
- unnecessary_getters_setters
- prefer_initializing_formals
- type_init_formals
- avoid_catches_without_on_clauses # avoid
- avoid_catching_errors
# DESIGN
- use_to_and_as_if_applicable # prefer
- one_member_abstracts # avoid
- avoid_classes_with_only_static_members # avoid
- prefer_mixin
- use_setters_to_change_properties
- avoid_returning_null # avoid
- avoid_returning_this # avoid
- type_annotate_public_apis # prefer
- avoid_private_typedef_functions # prefer
- avoid_positional_boolean_parameters # avoid
- hash_and_equals
- avoid_equals_and_hash_code_on_mutable_classes # avoid
- avoid_null_checks_in_equality_operators
- prefer_spread_collections
-
# COMMENTS
-