11analyzer :
22 errors :
3- always_use_package_imports : error
4- avoid_dynamic_calls : error
5- avoid_empty_else : error
6- avoid_print : error
7- avoid_relative_lib_imports : error
8- avoid_returning_null_for_future : error
9- avoid_slow_async_io : error
10- avoid_type_to_string : error
11- avoid_types_as_parameter_names : error
12- avoid_web_libraries_in_flutter : error
13- cancel_subscriptions : error
14- close_sinks : error
15- collection_methods_unrelated_type : error
16- comment_references : error
17- control_flow_in_finally : error
18- depend_on_referenced_packages : info
19- diagnostic_describe_all_properties : error
20- discarded_futures : error
21- empty_statements : error
22- hash_and_equals : error
23- invariant_booleans : error
24- iterable_contains_unrelated_type : error
25- list_remove_unrelated_type : error
26- literal_only_boolean_expressions : error
27- no_adjacent_strings_in_list : error
28- no_duplicate_case_values : error
29- no_logic_in_create_state : error
30- package_names : info
31- prefer_relative_imports : error
32- prefer_void_to_null : error
33- secure_pubspec_urls : info
34- sort_pub_dependencies : info
35- test_types_in_equals : error
36- throw_in_finally : error
37- unnecessary_statements : error
38- unrelated_type_equality_checks : error
39- unsafe_html : error
40- use_build_context_synchronously : error
41- use_key_in_widget_constructors : error
42- valid_regexps : error
3+ avoid_as : warning
4+ avoid_catches_without_on_clauses : high
5+ avoid_catching_errors : high
6+ avoid_double_and_int_checks : warning
7+ avoid_dynamic_calls : high
8+ avoid_equals_and_hash_code_on_mutable_classes : high
9+ avoid_field_initializers_in_const_classes : warning
10+ avoid_implementing_value_types : high
11+ avoid_js_rounded_ints : high
12+ avoid_returning_null : high
13+ avoid_returning_null_for_future : high
14+ avoid_slow_async_io : warning
15+ await_only_futures : warning
16+ cast_nullable_to_non_nullable : high
17+ close_sinks : high
18+ collection_methods_unrelated_type : warning
19+ conditional_uri_does_not_exist : high
20+ control_flow_in_finally : high
21+ discarded_futures : high
22+ empty_statements : high
23+ exhaustive_cases : high
24+ hash_and_equals : high
25+ invariant_booleans : warning
26+ iterable_contains_unrelated_type : high
27+ list_remove_unrelated_type : warning
28+ no_adjacent_strings_in_list : warning
29+ no_duplicate_case_values : high
30+ no_runtimeType_toString : warning
31+ null_check_on_nullable_type_parameter : high
32+ null_closures : high
33+ prefer_bool_in_asserts : info
34+ prefer_contains : info
35+ prefer_for_elements_to_map_fromIterable : info
36+ prefer_is_empty : warning
37+ recursive_getters : high
38+ secure_pubspec_urls : high
39+ sized_box_for_whitespace : info
40+ test_types_in_equals : high
41+ throw_in_finally : high
42+ unawaited_futures : high
43+ unnecessary_await_in_return : info
44+ unnecessary_statements : warning
45+ unrelated_type_equality_checks : warning
46+ unsafe_html : high
47+ use_build_context_synchronously : high
48+ use_colored_box : info
49+ use_decorated_box : info
50+ use_string_buffers : warning
51+ valid_regexps : high
52+ void_checks : high
4353linter :
4454 rules :
4555 always_declare_return_types : " true"
4656 always_put_control_body_on_new_line : " true"
4757 always_put_required_named_parameters_first : " true"
4858 always_require_non_null_named_parameters : " true"
4959 always_specify_types : " true"
60+ always_use_package_imports : " true"
5061 annotate_overrides : " true"
5162 avoid_annotating_with_dynamic : " true"
52- avoid_as : " true"
5363 avoid_bool_literals_in_conditional_expressions : " true"
54- avoid_catches_without_on_clauses : " true"
55- avoid_catching_errors : " true"
5664 avoid_classes_with_only_static_members : " true"
57- avoid_double_and_int_checks : " true"
58- avoid_equals_and_hash_code_on_mutable_classes : " true"
65+ avoid_empty_else : " true"
5966 avoid_escaping_inner_quotes : " true"
60- avoid_field_initializers_in_const_classes : " true"
6167 avoid_final_parameters : " true"
6268 avoid_function_literals_in_foreach_calls : " true"
63- avoid_implementing_value_types : " true"
6469 avoid_init_to_null : " true"
65- avoid_js_rounded_ints : " true"
6670 avoid_multiple_declarations_per_line : " true"
6771 avoid_null_checks_in_equality_operators : " true"
6872 avoid_positional_boolean_parameters : " true"
73+ avoid_print : " true"
6974 avoid_private_typedef_functions : " true"
7075 avoid_redundant_argument_values : " true"
76+ avoid_relative_lib_imports : " true"
7177 avoid_renaming_method_parameters : " true"
7278 avoid_return_types_on_setters : " true"
73- avoid_returning_null : " true"
7479 avoid_returning_null_for_void : " true"
7580 avoid_returning_this : " true"
7681 avoid_setters_without_getters : " true"
7782 avoid_shadowing_type_parameters : " true"
7883 avoid_single_cascade_in_expression_statements : " true"
84+ avoid_type_to_string : " true"
85+ avoid_types_as_parameter_names : " true"
7986 avoid_types_on_closure_parameters : " true"
8087 avoid_unnecessary_containers : " true"
8188 avoid_unused_constructor_parameters : " true"
8289 avoid_void_async : " true"
83- await_only_futures : " true"
90+ avoid_web_libraries_in_flutter : " true"
8491 camel_case_extensions : " true"
8592 camel_case_types : " true"
93+ cancel_subscriptions : " true"
8694 cascade_invocations : " true"
87- cast_nullable_to_non_nullable : " true"
8895 combinators_ordering : " true"
89- conditional_uri_does_not_exist : " true"
96+ comment_references : " true"
9097 constant_identifier_names : " true"
9198 curly_braces_in_flow_control_structures : " true"
9299 dangling_library_doc_comments : " true"
100+ depend_on_referenced_packages : " true"
93101 deprecated_consistency : " true"
102+ diagnostic_describe_all_properties : " true"
94103 directives_ordering : " true"
95104 do_not_use_environment : " true"
96105 empty_catches : " true"
97106 empty_constructor_bodies : " true"
98107 enable_null_safety : " true"
99108 eol_at_end_of_file : " true"
100- exhaustive_cases : " true"
101109 file_names : " true"
102110 flutter_style_todos : " true"
103111 implementation_imports : " true"
@@ -109,42 +117,39 @@ linter:
109117 library_prefixes : " true"
110118 library_private_types_in_public_api : " true"
111119 lines_longer_than_80_chars : " true"
120+ literal_only_boolean_expressions : " true"
112121 missing_whitespace_between_adjacent_strings : " true"
113122 no_default_cases : " true"
114123 no_leading_underscores_for_library_prefixes : " true"
115124 no_leading_underscores_for_local_identifiers : " true"
116- no_runtimeType_toString : " true"
125+ no_logic_in_create_state : " true"
117126 non_constant_identifier_names : " true"
118127 noop_primitive_operations : " true"
119- null_check_on_nullable_type_parameter : " true"
120- null_closures : " true"
121128 omit_local_variable_types : " true"
122129 one_member_abstracts : " true"
123130 only_throw_errors : " true"
124131 overridden_fields : " true"
125132 package_api_docs : " true"
133+ package_names : " true"
126134 package_prefixed_library_names : " true"
127135 parameter_assignments : " true"
128136 prefer_adjacent_string_concatenation : " true"
129137 prefer_asserts_in_initializer_lists : " true"
130138 prefer_asserts_with_message : " true"
131- prefer_bool_in_asserts : " true"
132139 prefer_collection_literals : " true"
133140 prefer_conditional_assignment : " true"
134141 prefer_const_constructors : " true"
135142 prefer_const_constructors_in_immutables : " true"
136143 prefer_const_declarations : " true"
137144 prefer_const_literals_to_create_immutables : " true"
138145 prefer_constructors_over_static_methods : " true"
139- prefer_contains : " true"
140146 prefer_double_quotes : " true"
141147 prefer_equal_for_default_values : " true"
142148 prefer_expression_function_bodies : " true"
143149 prefer_final_fields : " true"
144150 prefer_final_in_for_each : " true"
145151 prefer_final_locals : " true"
146152 prefer_final_parameters : " true"
147- prefer_for_elements_to_map_fromIterable : " true"
148153 prefer_foreach : " true"
149154 prefer_function_declarations_over_variables : " true"
150155 prefer_generic_function_type_aliases : " true"
@@ -154,32 +159,30 @@ linter:
154159 prefer_inlined_adds : " true"
155160 prefer_int_literals : " true"
156161 prefer_interpolation_to_compose_strings : " true"
157- prefer_is_empty : " true"
158162 prefer_is_not_empty : " true"
159163 prefer_is_not_operator : " true"
160164 prefer_iterable_whereType : " true"
161165 prefer_mixin : " true"
162166 prefer_null_aware_method_calls : " true"
163167 prefer_null_aware_operators : " true"
168+ prefer_relative_imports : " true"
164169 prefer_single_quotes : " true"
165170 prefer_spread_collections : " true"
166171 prefer_typing_uninitialized_variables : " true"
172+ prefer_void_to_null : " true"
167173 provide_deprecation_message : " true"
168174 public_member_api_docs : " true"
169- recursive_getters : " true"
170175 require_trailing_commas : " true"
171- sized_box_for_whitespace : " true"
172176 sized_box_shrink_expand : " true"
173177 slash_for_doc_comments : " true"
174178 sort_child_properties_last : " true"
175179 sort_constructors_first : " true"
180+ sort_pub_dependencies : " true"
176181 sort_unnamed_constructors_first : " true"
177182 super_goes_last : " true"
178183 tighten_type_of_initializing_formals : " true"
179184 type_annotate_public_apis : " true"
180185 type_init_formals : " true"
181- unawaited_futures : " true"
182- unnecessary_await_in_return : " true"
183186 unnecessary_brace_in_string_interps : " true"
184187 unnecessary_const : " true"
185188 unnecessary_constructor_name : " true"
@@ -202,21 +205,18 @@ linter:
202205 unnecessary_this : " true"
203206 unnecessary_to_list_in_spreads : " true"
204207 unreachable_from_main : " true"
205- use_colored_box : " true"
206- use_decorated_box : " true"
207208 use_enums : " true"
208209 use_full_hex_values_for_flutter_colors : " true"
209210 use_function_type_syntax_for_parameters : " true"
210211 use_if_null_to_convert_nulls_to_bools : " true"
211212 use_is_even_rather_than_modulo : " true"
213+ use_key_in_widget_constructors : " true"
212214 use_late_for_private_fields_and_variables : " true"
213215 use_named_constants : " true"
214216 use_raw_strings : " true"
215217 use_rethrow_when_possible : " true"
216218 use_setters_to_change_properties : " true"
217- use_string_buffers : " true"
218219 use_string_in_part_of_directives : " true"
219220 use_super_parameters : " true"
220221 use_test_throws_matchers : " true"
221222 use_to_and_as_if_applicable : " true"
222- void_checks : " true"
0 commit comments