|
8 | 8 | # which should be kept in sync with this file: |
9 | 9 | # |
10 | 10 | # - analysis_options.yaml (this file) |
11 | | -# - https://github.com/flutter/engine/blob/main/analysis_options.yaml |
| 11 | +# - engine/src/flutter/analysis_options.yaml |
12 | 12 | # - https://github.com/flutter/packages/blob/main/analysis_options.yaml |
13 | 13 | # |
14 | 14 | # This file contains the analysis options used for code in the flutter/flutter |
@@ -58,6 +58,7 @@ linter: |
58 | 58 | - avoid_field_initializers_in_const_classes |
59 | 59 | # - avoid_final_parameters # incompatible with prefer_final_parameters |
60 | 60 | - avoid_function_literals_in_foreach_calls |
| 61 | + # - avoid_futureor_void # not yet tested |
61 | 62 | # - avoid_implementing_value_types # see https://github.com/dart-lang/linter/issues/4558 |
62 | 63 | - avoid_init_to_null |
63 | 64 | - avoid_js_rounded_ints |
@@ -146,10 +147,10 @@ linter: |
146 | 147 | - null_closures |
147 | 148 | # - omit_local_variable_types # opposite of always_specify_types |
148 | 149 | # - omit_obvious_local_variable_types # not yet tested |
| 150 | + # - omit_obvious_property_types # not yet tested |
149 | 151 | # - one_member_abstracts # too many false positives |
150 | 152 | - only_throw_errors # this does get disabled in a few places where we have legacy code that uses strings et al |
151 | 153 | - overridden_fields |
152 | | - # - package_api_docs # Deprecated (https://github.com/dart-lang/linter/issues/5107) |
153 | 154 | - package_names |
154 | 155 | - package_prefixed_library_names |
155 | 156 | # - parameter_assignments # we do this commonly |
@@ -205,6 +206,8 @@ linter: |
205 | 206 | # - sort_pub_dependencies # prevents separating pinned transitive dependencies |
206 | 207 | - sort_unnamed_constructors_first |
207 | 208 | # - specify_nonobvious_local_variable_types # not yet tested |
| 209 | + # - specify_nonobvious_property_types # not yet tested |
| 210 | + - strict_top_level_inference |
208 | 211 | - test_types_in_equals |
209 | 212 | - throw_in_finally |
210 | 213 | - tighten_type_of_initializing_formals |
@@ -240,6 +243,7 @@ linter: |
240 | 243 | - unnecessary_to_list_in_spreads |
241 | 244 | - unreachable_from_main |
242 | 245 | - unrelated_type_equality_checks |
| 246 | + # - unsafe_variance # not yet tested |
243 | 247 | - use_build_context_synchronously |
244 | 248 | - use_colored_box |
245 | 249 | # - use_decorated_box # leads to bugs: DecoratedBox and Container are not equivalent (Container inserts extra padding) |
|
0 commit comments