Skip to content

Commit b4eafce

Browse files
goderbauerDBowen33
authored andcommitted
Lint sync (flutter#153453)
Just syncs our analysis_options.yaml with https://github.com/dart-lang/sdk/blob/main/pkg/linter/example/all.yaml. This is a no-op.
1 parent 1606cb9 commit b4eafce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

analysis_options.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ linter:
101101
- directives_ordering
102102
# - discarded_futures # too many false positives, similar to unawaited_futures
103103
# - do_not_use_environment # there are appropriate times to use the environment, especially in our tests and build logic
104+
# - document_ignores # not yet tested
104105
- empty_catches
105106
- empty_constructor_bodies
106107
- empty_statements
@@ -113,6 +114,7 @@ linter:
113114
- implicit_call_tearoffs
114115
- implicit_reopen
115116
- invalid_case_patterns
117+
# - invalid_runtime_check_with_js_interop_types # not yet tested
116118
# - join_return_with_assignment # not required by flutter style
117119
- leading_newlines_in_multiline_strings
118120
- library_annotations
@@ -139,6 +141,7 @@ linter:
139141
- null_check_on_nullable_type_parameter
140142
- null_closures
141143
# - omit_local_variable_types # opposite of always_specify_types
144+
# - omit_obvious_local_variable_types # not yet tested
142145
# - one_member_abstracts # too many false positives
143146
- only_throw_errors # this does get disabled in a few places where we have legacy code that uses strings et al
144147
- overridden_fields
@@ -197,13 +200,15 @@ linter:
197200
- sort_constructors_first
198201
# - sort_pub_dependencies # prevents separating pinned transitive dependencies
199202
- sort_unnamed_constructors_first
203+
# - specify_nonobvious_local_variable_types # not yet tested
200204
- test_types_in_equals
201205
- throw_in_finally
202206
- tighten_type_of_initializing_formals
203207
# - type_annotate_public_apis # subset of always_specify_types
204208
- type_init_formals
205209
- type_literal_in_constant_pattern
206210
# - unawaited_futures # too many false positives, especially with the way AnimationController works
211+
# - unintended_html_in_doc_comment # not yet tested
207212
- unnecessary_await_in_return
208213
- unnecessary_brace_in_string_interps
209214
- unnecessary_breaks
@@ -251,5 +256,6 @@ linter:
251256
- use_super_parameters
252257
- use_test_throws_matchers
253258
# - use_to_and_as_if_applicable # has false positives, so we prefer to catch this by code-review
259+
# - use_truncating_division # not yet tested
254260
- valid_regexps
255261
- void_checks

0 commit comments

Comments
 (0)