1
1
linter :
2
2
rules :
3
3
- always_declare_return_types
4
- - always_require_non_null_named_parameters
5
4
- annotate_overrides
5
+ - annotate_redeclares
6
6
- avoid_annotating_with_dynamic
7
+ - avoid_bool_literals_in_conditional_expressions
8
+ - avoid_catches_without_on_clauses
7
9
- avoid_catching_errors
8
10
- avoid_double_and_int_checks
9
11
- avoid_dynamic_calls
10
12
- avoid_empty_else
13
+ - avoid_equals_and_hash_code_on_mutable_classes
11
14
- avoid_escaping_inner_quotes
12
15
- avoid_field_initializers_in_const_classes
13
16
- avoid_final_parameters
14
17
- avoid_function_literals_in_foreach_calls
18
+ - avoid_futureor_void
15
19
- avoid_implementing_value_types
16
20
- avoid_init_to_null
17
21
- avoid_js_rounded_ints
@@ -24,8 +28,6 @@ linter:
24
28
- avoid_relative_lib_imports
25
29
- avoid_renaming_method_parameters
26
30
- avoid_return_types_on_setters
27
- - avoid_returning_null
28
- - avoid_returning_null_for_future
29
31
- avoid_returning_null_for_void
30
32
- avoid_returning_this
31
33
- avoid_setters_without_getters
@@ -34,6 +36,7 @@ linter:
34
36
- avoid_slow_async_io
35
37
- avoid_type_to_string
36
38
- avoid_types_as_parameter_names
39
+ - avoid_types_on_closure_parameters
37
40
- avoid_unnecessary_containers
38
41
- avoid_unused_constructor_parameters
39
42
- avoid_void_async
@@ -45,15 +48,20 @@ linter:
45
48
- cascade_invocations
46
49
- cast_nullable_to_non_nullable
47
50
- close_sinks
51
+ - collection_methods_unrelated_type
52
+ - combinators_ordering
48
53
- comment_references
49
54
- conditional_uri_does_not_exist
50
55
- constant_identifier_names
51
56
- control_flow_in_finally
52
57
- curly_braces_in_flow_control_structures
58
+ - dangling_library_doc_comments
53
59
- depend_on_referenced_packages
54
60
- deprecated_consistency
61
+ - deprecated_member_use_from_same_package
55
62
- directives_ordering
56
63
- do_not_use_environment
64
+ - document_ignores
57
65
- empty_catches
58
66
- empty_constructor_bodies
59
67
- empty_statements
@@ -62,22 +70,31 @@ linter:
62
70
- file_names
63
71
- hash_and_equals
64
72
- implementation_imports
65
- - iterable_contains_unrelated_type
73
+ - implicit_call_tearoffs
74
+ - implicit_reopen
75
+ - invalid_case_patterns
76
+ - invalid_runtime_check_with_js_interop_types
66
77
- join_return_with_assignment
67
78
- leading_newlines_in_multiline_strings
79
+ - library_annotations
68
80
- library_names
69
81
- library_prefixes
70
82
- library_private_types_in_public_api
71
- - list_remove_unrelated_type
83
+ - lines_longer_than_80_chars
72
84
- literal_only_boolean_expressions
85
+ - matching_super_parameters
86
+ - missing_code_block_language_in_doc_comment
73
87
- missing_whitespace_between_adjacent_strings
74
88
- no_adjacent_strings_in_list
75
89
- no_default_cases
76
90
- no_duplicate_case_values
77
91
- no_leading_underscores_for_library_prefixes
78
92
- no_leading_underscores_for_local_identifiers
93
+ - no_literal_bool_comparisons
79
94
- no_logic_in_create_state
80
95
- no_runtimeType_toString
96
+ - no_self_assignments
97
+ - no_wildcard_variable_uses
81
98
- non_constant_identifier_names
82
99
- noop_primitive_operations
83
100
- null_check_on_nullable_type_parameter
@@ -100,7 +117,6 @@ linter:
100
117
- prefer_const_literals_to_create_immutables
101
118
- prefer_constructors_over_static_methods
102
119
- prefer_contains
103
- - prefer_equal_for_default_values
104
120
- prefer_expression_function_bodies
105
121
- prefer_final_fields
106
122
- prefer_final_in_for_each
@@ -109,6 +125,7 @@ linter:
109
125
- prefer_foreach
110
126
- prefer_function_declarations_over_variables
111
127
- prefer_generic_function_type_aliases
128
+ - prefer_if_elements_to_conditional_expressions
112
129
- prefer_if_null_operators
113
130
- prefer_initializing_formals
114
131
- prefer_inlined_adds
@@ -127,30 +144,38 @@ linter:
127
144
- prefer_typing_uninitialized_variables
128
145
- prefer_void_to_null
129
146
- provide_deprecation_message
147
+ - public_member_api_docs
130
148
- recursive_getters
131
149
- require_trailing_commas
132
150
- secure_pubspec_urls
133
151
- sized_box_for_whitespace
134
152
- sized_box_shrink_expand
135
153
- slash_for_doc_comments
136
154
- sort_child_properties_last
155
+ - sort_constructors_first
137
156
- sort_pub_dependencies
138
157
- sort_unnamed_constructors_first
139
158
- test_types_in_equals
140
159
- throw_in_finally
141
160
- tighten_type_of_initializing_formals
142
161
- type_annotate_public_apis
143
162
- type_init_formals
163
+ - type_literal_in_constant_pattern
144
164
- unawaited_futures
165
+ - unintended_html_in_doc_comment
145
166
- unnecessary_await_in_return
146
167
- unnecessary_brace_in_string_interps
168
+ - unnecessary_breaks
147
169
- unnecessary_const
148
170
- unnecessary_constructor_name
149
171
- unnecessary_getters_setters
150
172
- unnecessary_lambdas
151
173
- unnecessary_late
174
+ - unnecessary_library_directive
175
+ - unnecessary_library_name
152
176
- unnecessary_new
153
177
- unnecessary_null_aware_assignments
178
+ - unnecessary_null_aware_operator_on_extension_on_nullable
154
179
- unnecessary_null_checks
155
180
- unnecessary_null_in_if_null_operators
156
181
- unnecessary_nullable_for_final_variable_declarations
@@ -161,8 +186,9 @@ linter:
161
186
- unnecessary_string_escapes
162
187
- unnecessary_string_interpolations
163
188
- unnecessary_this
189
+ - unnecessary_to_list_in_spreads
190
+ - unreachable_from_main
164
191
- unrelated_type_equality_checks
165
- - unsafe_html
166
192
- use_build_context_synchronously
167
193
- use_colored_box
168
194
- use_decorated_box
@@ -178,8 +204,10 @@ linter:
178
204
- use_rethrow_when_possible
179
205
- use_setters_to_change_properties
180
206
- use_string_buffers
207
+ - use_string_in_part_of_directives
181
208
- use_super_parameters
182
209
- use_test_throws_matchers
183
210
- use_to_and_as_if_applicable
211
+ - use_truncating_division
184
212
- valid_regexps
185
- - void_checks
213
+ - void_checks
0 commit comments