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
# - always_put_required_named_parameters_first # we prefer having parameters in the same order as fields https://github.com/flutter/flutter/issues/10219
38
43
- always_specify_types
39
44
# - always_use_package_imports # we do this commonly
40
45
- annotate_overrides
46
+
- annotate_redeclares
41
47
# - avoid_annotating_with_dynamic # conflicts with always_specify_types
42
48
- avoid_bool_literals_in_conditional_expressions
43
49
# - avoid_catches_without_on_clauses # blocked on https://github.com/dart-lang/linter/issues/3023
44
-
# - avoid_catching_errors # blocked on https://github.com/dart-lang/linter/issues/3023
45
-
#avoid_classes_with_only_static_members # # we do this commonly for `abstract final class`es
50
+
# - avoid_catching_errors # blocked on https://github.com/dart-lang/linter/issues/4998
51
+
#- avoid_classes_with_only_static_members # we do this commonly for `abstract final class`es
46
52
- avoid_double_and_int_checks
47
53
- avoid_dynamic_calls
48
54
- avoid_empty_else
@@ -51,7 +57,8 @@ linter:
51
57
- avoid_field_initializers_in_const_classes
52
58
# - avoid_final_parameters # incompatible with prefer_final_parameters
53
59
- avoid_function_literals_in_foreach_calls
54
-
- avoid_implementing_value_types
60
+
# - avoid_futureor_void # not yet tested
61
+
# - avoid_implementing_value_types # see https://github.com/dart-lang/linter/issues/4558
55
62
- avoid_init_to_null
56
63
- avoid_js_rounded_ints
57
64
# - avoid_multiple_declarations_per_line # seems to be a stylistic choice we don't subscribe to
@@ -93,10 +100,12 @@ linter:
93
100
- dangling_library_doc_comments
94
101
- depend_on_referenced_packages
95
102
- deprecated_consistency
103
+
# - deprecated_member_use_from_same_package # we allow self-references to deprecated members
96
104
# - diagnostic_describe_all_properties # enabled only at the framework level (packages/flutter/lib)
97
105
- directives_ordering
98
106
# - discarded_futures # too many false positives, similar to unawaited_futures
99
107
# - do_not_use_environment # there are appropriate times to use the environment, especially in our tests and build logic
108
+
# - document_ignores # not yet tested
100
109
- empty_catches
101
110
- empty_constructor_bodies
102
111
- empty_statements
@@ -107,32 +116,40 @@ linter:
107
116
- hash_and_equals
108
117
- implementation_imports
109
118
- implicit_call_tearoffs
119
+
- implicit_reopen
110
120
- invalid_case_patterns
121
+
- invalid_runtime_check_with_js_interop_types
111
122
# - join_return_with_assignment # not required by flutter style
112
123
- leading_newlines_in_multiline_strings
113
124
- library_annotations
114
125
- library_names
115
126
- library_prefixes
116
127
- library_private_types_in_public_api
117
128
# - lines_longer_than_80_chars # not required by flutter style
118
-
# - literal_only_boolean_expressions # too many false positives: https://github.com/dart-lang/linter/issues/453
129
+
- literal_only_boolean_expressions
130
+
# - matching_super_parameters # blocked on https://github.com/dart-lang/language/issues/2509
131
+
- missing_code_block_language_in_doc_comment
119
132
- missing_whitespace_between_adjacent_strings
120
133
- no_adjacent_strings_in_list
121
134
- no_default_cases
122
135
- no_duplicate_case_values
123
136
- no_leading_underscores_for_library_prefixes
124
137
- no_leading_underscores_for_local_identifiers
138
+
- no_literal_bool_comparisons
125
139
- no_logic_in_create_state
126
140
# - no_runtimeType_toString # ok in tests; we enable this only in packages/
141
+
- no_self_assignments
142
+
- no_wildcard_variable_uses
127
143
- non_constant_identifier_names
128
144
- noop_primitive_operations
129
145
- null_check_on_nullable_type_parameter
130
146
- null_closures
131
147
# - omit_local_variable_types # opposite of always_specify_types
148
+
# - omit_obvious_local_variable_types # not yet tested
149
+
# - omit_obvious_property_types # not yet tested
132
150
# - one_member_abstracts # too many false positives
133
151
- only_throw_errors # this does get disabled in a few places where we have legacy code that uses strings et al
134
152
- overridden_fields
135
-
- package_api_docs
136
153
- package_names
137
154
- package_prefixed_library_names
138
155
# - parameter_assignments # we do this commonly
@@ -148,11 +165,11 @@ linter:
148
165
# - prefer_constructors_over_static_methods # far too many false positives
149
166
- prefer_contains
150
167
# - prefer_double_quotes # opposite of prefer_single_quotes
151
-
# - prefer_expression_function_bodies # conflicts with https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#consider-using--for-short-functions-and-methods
168
+
# - prefer_expression_function_bodies # conflicts with ./docs/contributing/Style-guide-for-Flutter-repo.md#consider-using--for-short-functions-and-methods
152
169
- prefer_final_fields
153
170
- prefer_final_in_for_each
154
171
- prefer_final_locals
155
-
# - 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
172
+
# - prefer_final_parameters # adds too much verbosity
156
173
- prefer_for_elements_to_map_fromIterable
157
174
- prefer_foreach
158
175
- prefer_function_declarations_over_variables
@@ -161,7 +178,7 @@ linter:
161
178
- prefer_if_null_operators
162
179
- prefer_initializing_formals
163
180
- prefer_inlined_adds
164
-
# - prefer_int_literals # conflicts with https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#use-double-literals-for-double-constants
181
+
# - prefer_int_literals # conflicts with ./docs/contributing/Style-guide-for-Flutter-repo.md#use-double-literals-for-double-constants
0 commit comments