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
26
-
- always_require_non_null_named_parameters
27
28
- always_specify_types
28
29
# - always_use_package_imports # we do this commonly
29
30
- annotate_overrides
30
31
# - avoid_annotating_with_dynamic # conflicts with always_specify_types
31
32
- avoid_bool_literals_in_conditional_expressions
32
33
# - avoid_catches_without_on_clauses # blocked on https://github.com/dart-lang/linter/issues/3023
33
34
# - avoid_catching_errors # blocked on https://github.com/dart-lang/linter/issues/3023
34
-
- avoid_classes_with_only_static_members
35
+
#- avoid_classes_with_only_static_members # we do this commonly for `abstract final class`es
35
36
- avoid_double_and_int_checks
36
37
- avoid_dynamic_calls
37
38
- avoid_empty_else
@@ -40,7 +41,7 @@ linter:
40
41
- avoid_field_initializers_in_const_classes
41
42
# - avoid_final_parameters # incompatible with prefer_final_parameters
42
43
- avoid_function_literals_in_foreach_calls
43
-
- avoid_implementing_value_types
44
+
#- avoid_implementing_value_types # see https://github.com/dart-lang/linter/issues/4558
44
45
- avoid_init_to_null
45
46
- avoid_js_rounded_ints
46
47
# - avoid_multiple_declarations_per_line # seems to be a stylistic choice we don't subscribe to
@@ -52,8 +53,6 @@ linter:
52
53
- avoid_relative_lib_imports
53
54
- avoid_renaming_method_parameters
54
55
- avoid_return_types_on_setters
55
-
- avoid_returning_null
56
-
- avoid_returning_null_for_future
57
56
- avoid_returning_null_for_void
58
57
# - avoid_returning_this # there are enough valid reasons to return `this` that this lint ends up with too many false positives
59
58
- avoid_setters_without_getters
@@ -74,17 +73,20 @@ linter:
74
73
# - cascade_invocations # doesn't match the typical style of this repo
75
74
- cast_nullable_to_non_nullable
76
75
# - close_sinks # not reliable enough
77
-
# - combinators_ordering # DIFFERENT FROM FLUTTER/FLUTTER: This isn't available on stable yet.
76
+
- collection_methods_unrelated_type
77
+
- combinators_ordering
78
78
# - comment_references # blocked on https://github.com/dart-lang/linter/issues/1142
79
79
- conditional_uri_does_not_exist
80
80
# - constant_identifier_names # needs an opt-out https://github.com/dart-lang/linter/issues/204
81
81
- control_flow_in_finally
82
82
- curly_braces_in_flow_control_structures
83
+
# - dangling_library_doc_comments # Temporarily ingnored from flutter-tizen.
83
84
- depend_on_referenced_packages
84
85
- deprecated_consistency
86
+
# - deprecated_member_use_from_same_package # we allow self-references to deprecated members
85
87
# - diagnostic_describe_all_properties # enabled only at the framework level (packages/flutter/lib)
86
88
- directives_ordering
87
-
# - discarded_futures # not yet tested
89
+
# - discarded_futures # too many false positives, similar to unawaited_futures
88
90
# - do_not_use_environment # there are appropriate times to use the environment, especially in our tests and build logic
89
91
- empty_catches
90
92
- empty_constructor_bodies
@@ -95,23 +97,29 @@ linter:
95
97
- flutter_style_todos
96
98
- hash_and_equals
97
99
- implementation_imports
98
-
- iterable_contains_unrelated_type
100
+
- implicit_call_tearoffs
101
+
- implicit_reopen
102
+
- invalid_case_patterns
99
103
# - join_return_with_assignment # not required by flutter style
100
104
- leading_newlines_in_multiline_strings
105
+
- library_annotations
101
106
- library_names
102
107
- library_prefixes
103
108
- library_private_types_in_public_api
104
109
# - lines_longer_than_80_chars # not required by flutter style
105
-
- list_remove_unrelated_type
106
-
# - literal_only_boolean_expressions # too many false positives: https://github.com/dart-lang/linter/issues/453
110
+
- literal_only_boolean_expressions
111
+
# - matching_super_parameters # blocked on https://github.com/dart-lang/language/issues/2509
107
112
- missing_whitespace_between_adjacent_strings
108
113
- no_adjacent_strings_in_list
109
114
- no_default_cases
110
115
- no_duplicate_case_values
111
116
- no_leading_underscores_for_library_prefixes
112
117
- no_leading_underscores_for_local_identifiers
118
+
# - no_literal_bool_comparisons # Temporarily ingnored from flutter-tizen.
113
119
- no_logic_in_create_state
114
120
- no_runtimeType_toString # DIFFERENT FROM FLUTTER/FLUTTER
121
+
- no_self_assignments
122
+
- no_wildcard_variable_uses
115
123
- non_constant_identifier_names
116
124
- noop_primitive_operations
117
125
- null_check_on_nullable_type_parameter
@@ -136,12 +144,11 @@ linter:
136
144
# - prefer_constructors_over_static_methods # far too many false positives
137
145
- prefer_contains
138
146
# - prefer_double_quotes # opposite of prefer_single_quotes
139
-
- prefer_equal_for_default_values
140
147
# - prefer_expression_function_bodies # conflicts with https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#consider-using--for-short-functions-and-methods
141
148
- prefer_final_fields
142
149
- prefer_final_in_for_each
143
150
- prefer_final_locals
144
-
# - 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
151
+
# - prefer_final_parameters # adds too much verbosity
145
152
- prefer_for_elements_to_map_fromIterable
146
153
- prefer_foreach
147
154
- prefer_function_declarations_over_variables
@@ -156,7 +163,7 @@ linter:
156
163
- prefer_is_not_empty
157
164
- prefer_is_not_operator
158
165
- prefer_iterable_whereType
159
-
#- prefer_mixin # Has false positives, see https://github.com/dart-lang/linter/issues/3018
166
+
- prefer_mixin
160
167
# - prefer_null_aware_method_calls # "call()" is confusing to people new to the language since it's not documented anywhere
161
168
- prefer_null_aware_operators
162
169
- prefer_relative_imports
@@ -167,10 +174,10 @@ linter:
167
174
- provide_deprecation_message
168
175
- public_member_api_docs # DIFFERENT FROM FLUTTER/FLUTTER
169
176
- recursive_getters
170
-
# - require_trailing_commas # blocked on https://github.com/dart-lang/sdk/issues/47441
177
+
# - require_trailing_commas # would be nice, but requires a lot of manual work: 10,000+ code locations would need to be reformatted by hand after bulk fix is applied
171
178
- secure_pubspec_urls
172
179
- sized_box_for_whitespace
173
-
#- sized_box_shrink_expand # not yet tested
180
+
- sized_box_shrink_expand
174
181
- slash_for_doc_comments
175
182
- sort_child_properties_last
176
183
- sort_constructors_first
@@ -181,15 +188,18 @@ linter:
181
188
- tighten_type_of_initializing_formals
182
189
# - type_annotate_public_apis # subset of always_specify_types
183
190
- type_init_formals
184
-
# - unawaited_futures # too many false positives, especially with the way AnimationController works
191
+
- type_literal_in_constant_pattern
192
+
# - unawaited_futures # DIFFERENT FROM FLUTTER/FLUTTER: It's disabled there for "too many false positives"; that's not an issue here, and missing awaits have caused production issues in plugins. # Temporarily ingnored from flutter-tizen.
185
193
- unnecessary_await_in_return
186
194
- unnecessary_brace_in_string_interps
195
+
- unnecessary_breaks
187
196
- unnecessary_const
188
197
- unnecessary_constructor_name
189
198
# - unnecessary_final # conflicts with prefer_final_locals
190
199
- unnecessary_getters_setters
191
200
# - unnecessary_lambdas # has false positives: https://github.com/dart-lang/linter/issues/498
192
201
- unnecessary_late
202
+
# - unnecessary_library_directive # Temporarily ingnored from flutter-tizen.
0 commit comments