You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
# - always_put_required_named_parameters_first # we prefer having parameters in the same order as fields https://github.com/flutter/flutter/issues/10219
@@ -31,7 +31,7 @@ linter:
31
31
- avoid_bool_literals_in_conditional_expressions
32
32
# - avoid_catches_without_on_clauses # blocked on https://github.com/dart-lang/linter/issues/3023
33
33
# - avoid_catching_errors # blocked on https://github.com/dart-lang/linter/issues/3023
34
-
# - avoid_classes_with_only_static_members # we do this commonly
34
+
# - avoid_classes_with_only_static_members # we do this commonly for `abstract final class`es
35
35
- avoid_double_and_int_checks
36
36
- avoid_dynamic_calls
37
37
- avoid_empty_else
@@ -40,7 +40,7 @@ linter:
40
40
- avoid_field_initializers_in_const_classes
41
41
# - avoid_final_parameters # incompatible with prefer_final_parameters
42
42
- avoid_function_literals_in_foreach_calls
43
-
- avoid_implementing_value_types
43
+
#- avoid_implementing_value_types # see https://github.com/dart-lang/linter/issues/4558
44
44
- avoid_init_to_null
45
45
- avoid_js_rounded_ints
46
46
# - avoid_multiple_declarations_per_line # seems to be a stylistic choice we don't subscribe to
@@ -82,6 +82,7 @@ linter:
82
82
- dangling_library_doc_comments
83
83
- depend_on_referenced_packages
84
84
- deprecated_consistency
85
+
# - deprecated_member_use_from_same_package # we allow self-references to deprecated members
85
86
# - diagnostic_describe_all_properties # enabled only at the framework level (packages/flutter/lib)
86
87
- directives_ordering
87
88
# - discarded_futures # too many false positives, similar to unawaited_futures
@@ -96,25 +97,28 @@ linter:
96
97
- hash_and_equals
97
98
- implementation_imports
98
99
- implicit_call_tearoffs
100
+
- implicit_reopen
99
101
- invalid_case_patterns
100
-
- iterable_contains_unrelated_type
101
102
# - join_return_with_assignment # not required by flutter style
102
103
- leading_newlines_in_multiline_strings
103
104
- library_annotations
104
105
- library_names
105
106
- library_prefixes
106
107
- library_private_types_in_public_api
107
108
# - lines_longer_than_80_chars # not required by flutter style
108
-
- list_remove_unrelated_type
109
-
# - literal_only_boolean_expressions # too many false positives: https://github.com/dart-lang/linter/issues/453
109
+
- literal_only_boolean_expressions
110
+
# - matching_super_parameters # blocked on https://github.com/dart-lang/language/issues/2509
110
111
# - missing_whitespace_between_adjacent_strings # DIFFERENT FROM FLUTTER/FLUTTER (too many false positives)
111
112
- no_adjacent_strings_in_list
112
113
- no_default_cases
113
114
- no_duplicate_case_values
114
115
- no_leading_underscores_for_library_prefixes
115
116
- no_leading_underscores_for_local_identifiers
117
+
- no_literal_bool_comparisons
116
118
- no_logic_in_create_state
117
119
# - no_runtimeType_toString # ok in tests; we enable this only in packages/
120
+
- no_self_assignments
121
+
- no_wildcard_variable_uses
118
122
- non_constant_identifier_names
119
123
- noop_primitive_operations
120
124
- null_check_on_nullable_type_parameter
@@ -143,7 +147,7 @@ linter:
143
147
- prefer_final_fields
144
148
- prefer_final_in_for_each
145
149
- prefer_final_locals
146
-
# - prefer_final_parameters # we should enable this one day when it can be auto-fixed (https://github.com/dart-lang/linter/issues/3104), see also parameter_assignments
150
+
# - prefer_final_parameters # adds too much verbosity
147
151
- prefer_for_elements_to_map_fromIterable
148
152
- prefer_foreach
149
153
- prefer_function_declarations_over_variables
@@ -183,6 +187,7 @@ linter:
183
187
- tighten_type_of_initializing_formals
184
188
# - type_annotate_public_apis # subset of always_specify_types
185
189
- type_init_formals
190
+
- type_literal_in_constant_pattern
186
191
# - unawaited_futures # too many false positives, especially with the way AnimationController works
187
192
- unnecessary_await_in_return
188
193
- unnecessary_brace_in_string_interps
@@ -208,7 +213,7 @@ linter:
208
213
- unnecessary_string_interpolations
209
214
- unnecessary_this
210
215
- unnecessary_to_list_in_spreads
211
-
#- unreachable_from_main # Do not enable this rule until it is un-marked as "experimental" and carefully re-evaluated.
0 commit comments