-
Notifications
You must be signed in to change notification settings - Fork 1
/
analysis_options.yaml
60 lines (57 loc) · 1.95 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
54
55
56
57
58
59
60
include: package:pedantic/analysis_options.yaml
linter:
rules:
# STYLE
- camel_case_types
- camel_case_extensions
- library_names
- file_names
- library_prefixes
- non_constant_identifier_names
- constant_identifier_names # prefer
- directives_ordering
- curly_braces_in_flow_control_structures
# USAGE
- implementation_imports
- avoid_relative_lib_imports
- prefer_relative_imports
- prefer_adjacent_string_concatenation
- prefer_interpolation_to_compose_strings # prefer
- unnecessary_brace_in_string_interps # avoid
- prefer_collection_literals
- prefer_is_empty
- prefer_is_not_empty
- avoid_function_literals_in_foreach_calls # avoid
- prefer_iterable_whereType
- unnecessary_lambdas
- prefer_equal_for_default_values
- avoid_init_to_null
- unnecessary_getters_setters
#- unnecessary_getters # prefer # Disabled pending fix: https://github.com/dart-lang/linter/issues/23
#- prefer_expression_function_bodies # consider
- unnecessary_this
- prefer_initializing_formals
- type_init_formals
- empty_constructor_bodies
- unnecessary_new
- unnecessary_const
- avoid_catches_without_on_clauses # avoid
- avoid_catching_errors
- use_rethrow_when_possible
# DESIGN
- use_to_and_as_if_applicable # prefer
- one_member_abstracts # avoid
- avoid_classes_with_only_static_members # avoid
- prefer_final_fields # prefer
- use_setters_to_change_properties
- avoid_setters_without_getters
- avoid_returning_null # avoid
- avoid_returning_this # avoid
#- prefer_typing_uninitialized_variables # consider
- avoid_return_types_on_setters
- prefer_generic_function_type_aliases
- avoid_private_typedef_functions # prefer
#- use_function_type_syntax_for_parameters # consider
- hash_and_equals
- avoid_equals_and_hash_code_on_mutable_classes # avoid
- avoid_null_checks_in_equality_operators