1
+ analyzer :
2
+ strong-mode :
3
+ implicit-casts : false
4
+ implicit-dynamic : false
5
+ exclude :
6
+ - lib/**/*.g.dart
7
+ - test/**.g.dart
8
+ - test/**/*.g.dart
9
+
10
+ linter :
11
+ rules :
12
+ - always_declare_return_types
13
+ # - always_put_control_body_on_new_line -- DISABLED: DARTFMT INCOMPATIBLE
14
+ - always_put_required_named_parameters_first
15
+ - always_require_non_null_named_parameters
16
+ # - always_specify_types -- DISABLED: LEADS TO FLUFFY CODE
17
+ - annotate_overrides
18
+ # - avoid_annotating_with_dynamic -- DISABLED: Gives false positives for function arguments where it is needed
19
+ # - avoid_as
20
+ - avoid_bool_literals_in_conditional_expressions
21
+ - avoid_catches_without_on_clauses
22
+ - avoid_catching_errors
23
+ - avoid_classes_with_only_static_members
24
+ - avoid_double_and_int_checks
25
+ - avoid_empty_else
26
+ - avoid_equals_and_hash_code_on_mutable_classes
27
+ - avoid_field_initializers_in_const_classes
28
+ # - avoid_function_literals_in_foreach_calls -- DISABLED: forEach is often clearer than for-loop
29
+ - avoid_implementing_value_types
30
+ - avoid_init_to_null
31
+ - avoid_js_rounded_ints
32
+ - avoid_null_checks_in_equality_operators
33
+ - avoid_positional_boolean_parameters
34
+ # - avoid_print -- Will be assessed separately
35
+ - avoid_private_typedef_functions
36
+ # - avoid_redundant_argument_values -- DISABLED: This rule is to be supported in a future Dart release
37
+ - avoid_relative_lib_imports
38
+ - avoid_renaming_method_parameters
39
+ - avoid_return_types_on_setters
40
+ - avoid_returning_null
41
+ - avoid_returning_null_for_future
42
+ - avoid_returning_null_for_void
43
+ - avoid_returning_this
44
+ # - avoid_setters_without_getters -- DISABLED: Sometimes it makes sense to have write-only member
45
+ - avoid_shadowing_type_parameters
46
+ - avoid_single_cascade_in_expression_statements
47
+ - avoid_slow_async_io
48
+ - avoid_types_as_parameter_names
49
+ # - avoid_types_on_closure_parameters -- DISABLED: INCOMPATIBLE WITH IMPLICIT TYPE CASTS DISABLED
50
+ - avoid_unnecessary_containers
51
+ - avoid_unused_constructor_parameters
52
+ - avoid_void_async
53
+ - avoid_web_libraries_in_flutter
54
+ - await_only_futures
55
+ - camel_case_extensions
56
+ - camel_case_types
57
+ - cancel_subscriptions
58
+ # - cascade_invocations -- DISABLED: Sometimes it's preferable to declare a variable with an intermediate result for readability
59
+ - close_sinks
60
+ - comment_references
61
+ - constant_identifier_names
62
+ - control_flow_in_finally
63
+ # - curly_braces_in_flow_control_structures -- DISABLED: WE DO NOT WANT THIS
64
+ # - diagnostic_describe_all_properties -- DISABLED: experimental feature
65
+ - directives_ordering
66
+ - empty_catches
67
+ - empty_constructor_bodies
68
+ - empty_statements
69
+ - file_names
70
+ # - flutter_style_todos -- DISABLED: TOO MUCH?
71
+ - hash_and_equals
72
+ - implementation_imports
73
+ - invariant_booleans
74
+ - iterable_contains_unrelated_type
75
+ - join_return_with_assignment
76
+ - library_names
77
+ - library_prefixes
78
+ # - lines_longer_than_80_chars -- DISABLED: WE DO NOT WANT THIS
79
+ - list_remove_unrelated_type
80
+ - literal_only_boolean_expressions
81
+ # - missing_whitespace_between_adjacent_strings -- DISABLED: This rule is to be supported in a future Dart release
82
+ - no_adjacent_strings_in_list
83
+ - no_duplicate_case_values
84
+ # - no_logic_in_create_state -- DISABLED: This rule is to be supported in a future Dart release
85
+ # - no_runtimeType_toString -- DISABLED: This rule is to be supported in a future Dart release
86
+ - non_constant_identifier_names
87
+ - null_closures
88
+ - omit_local_variable_types
89
+ - one_member_abstracts
90
+ - only_throw_errors
91
+ - overridden_fields
92
+ - package_api_docs
93
+ - package_names
94
+ - package_prefixed_library_names
95
+ - parameter_assignments
96
+ - prefer_adjacent_string_concatenation
97
+ - prefer_asserts_in_initializer_lists
98
+ # - prefer_asserts_with_message
99
+ - prefer_collection_literals
100
+ - prefer_conditional_assignment
101
+ - prefer_const_constructors
102
+ - prefer_const_constructors_in_immutables
103
+ - prefer_const_declarations
104
+ - prefer_const_literals_to_create_immutables
105
+ - prefer_constructors_over_static_methods
106
+ - prefer_contains
107
+ # - prefer_double_quotes -- Will be assessed separately
108
+ - prefer_equal_for_default_values
109
+ - prefer_expression_function_bodies
110
+ - prefer_final_fields
111
+ - prefer_final_in_for_each
112
+ - prefer_final_locals
113
+ - prefer_for_elements_to_map_fromIterable
114
+ - prefer_foreach
115
+ - prefer_function_declarations_over_variables
116
+ - prefer_generic_function_type_aliases
117
+ - prefer_if_elements_to_conditional_expressions
118
+ - prefer_if_null_operators
119
+ - prefer_initializing_formals
120
+ - prefer_inlined_adds
121
+ # - prefer_int_literals -- DISABLED: ADDED VALUE IS UNCLEAR
122
+ - prefer_interpolation_to_compose_strings
123
+ - prefer_is_empty
124
+ - prefer_is_not_empty
125
+ - prefer_is_not_operator
126
+ - prefer_iterable_whereType
127
+ - prefer_mixin
128
+ - prefer_null_aware_operators
129
+ # - prefer_relative_imports -- Will be assessed separately
130
+ # - prefer_single_quotes -- DISABLED: ADDED VALUE IS UNCLEAR
131
+ - prefer_spread_collections
132
+ - prefer_typing_uninitialized_variables
133
+ - prefer_void_to_null
134
+ # - provide_deprecation_messages -- DISABLED: This rule is to be supported in a future Dart release
135
+ - public_member_api_docs
136
+ - recursive_getters
137
+ - slash_for_doc_comments
138
+ - sort_child_properties_last
139
+ - sort_constructors_first
140
+ - sort_pub_dependencies
141
+ - sort_unnamed_constructors_first
142
+ - test_types_in_equals
143
+ - throw_in_finally
144
+ # - type_annotate_public_apis -- DISABLED: ADDED VALUE IS UNCLEAR
145
+ - type_init_formals
146
+ - unawaited_futures
147
+ - unnecessary_await_in_return
148
+ - unnecessary_brace_in_string_interps
149
+ - unnecessary_const
150
+ # - unnecessary_final
151
+ - unnecessary_getters_setters
152
+ - unnecessary_lambdas
153
+ - unnecessary_new
154
+ - unnecessary_null_aware_assignments
155
+ - unnecessary_null_in_if_null_operators
156
+ - unnecessary_overrides
157
+ - unnecessary_parenthesis
158
+ - unnecessary_statements
159
+ # - unnecessary_string_interpolations -- DISABLED: This rule is to be supported in a future Dart release
160
+ - unnecessary_this
161
+ - unrelated_type_equality_checks
162
+ - unsafe_html
163
+ - use_full_hex_values_for_flutter_colors
164
+ - use_function_type_syntax_for_parameters
165
+ # - use_key_in_widget_constructors -- DISABLED: This rule is to be supported in a future Dart release
166
+ - use_rethrow_when_possible
167
+ - use_setters_to_change_properties
168
+ - use_string_buffers
169
+ - use_to_and_as_if_applicable
170
+ - valid_regexps
171
+ - void_checks
0 commit comments