Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 1 | # Specify analysis options. |
| 2 | # |
| 3 | # Until there are meta linter rules, each desired lint must be explicitly enabled. |
| 4 | # See: https://github.com/dart-lang/linter/issues/288 |
| 5 | # |
| 6 | # For a list of lints, see: http://dart-lang.github.io/linter/lints/ |
| 7 | # See the configuration guide for more |
| 8 | # https://github.com/dart-lang/sdk/tree/master/pkg/analyzer#configuring-the-analyzer |
| 9 | # |
| 10 | # There are other similar analysis options files in the flutter repos, |
| 11 | # which should be kept in sync with this file: |
| 12 | # |
| 13 | # - analysis_options.yaml (this file) |
| 14 | # - packages/flutter/lib/analysis_options_user.yaml |
| 15 | # - https://github.com/flutter/plugins/blob/master/analysis_options.yaml |
| 16 | # - https://github.com/flutter/engine/blob/master/analysis_options.yaml |
| 17 | # |
| 18 | # This file contains the analysis options used by Flutter tools, such as IntelliJ, |
| 19 | # Android Studio, and the `flutter analyze` command. |
krisgiesing | 07b5f83 | 2016-05-04 10:15:15 -0700 | [diff] [blame] | 20 | |
| 21 | analyzer: |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 22 | strong-mode: |
Alexandre Ardhuin | 78db965 | 2019-12-19 11:23:01 +0100 | [diff] [blame] | 23 | implicit-casts: false |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 24 | implicit-dynamic: false |
krisgiesing | 07b5f83 | 2016-05-04 10:15:15 -0700 | [diff] [blame] | 25 | errors: |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 26 | # treat missing required parameters as a warning (not a hint) |
| 27 | missing_required_param: warning |
| 28 | # treat missing returns as a warning (not a hint) |
| 29 | missing_return: warning |
| 30 | # allow having TODOs in the code |
| 31 | todo: ignore |
Christopher Fujino | 5cfb16b | 2020-06-19 12:03:38 -0700 | [diff] [blame] | 32 | # allow self-reference to deprecated members (we do this because otherwise we have |
| 33 | # to annotate every member in every test, assert, etc, when we deprecate something) |
| 34 | deprecated_member_use_from_same_package: ignore |
Siva | b110922 | 2019-01-03 10:55:50 -0800 | [diff] [blame] | 35 | # Ignore analyzer hints for updating pubspecs when using Future or |
| 36 | # Stream and not importing dart:async |
| 37 | # Please see https://github.com/flutter/flutter/pull/24528 for details. |
Alexander Aprelev | fe1a51a | 2018-12-27 14:55:07 -0800 | [diff] [blame] | 38 | sdk_version_async_exported_from_core: ignore |
Michael Goderbauer | 0f91f0d | 2021-03-02 21:14:03 -0800 | [diff] [blame] | 39 | # Turned off until null-safe rollout is complete. |
| 40 | unnecessary_null_comparison: ignore |
Devon Carew | 207451f | 2016-08-18 19:11:39 -0700 | [diff] [blame] | 41 | exclude: |
Alexandre Ardhuin | 919dcf5 | 2019-06-27 21:23:16 +0200 | [diff] [blame] | 42 | - "bin/cache/**" |
Christopher Fujino | 4a7f280 | 2021-04-19 15:04:04 -0700 | [diff] [blame] | 43 | # Ignore protoc generated files |
| 44 | - "dev/tools/lib/proto/*" |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 45 | |
| 46 | linter: |
| 47 | rules: |
| 48 | # these rules are documented on and in the same order as |
| 49 | # the Dart Lint rules page to make maintenance easier |
| 50 | # https://github.com/dart-lang/linter/blob/master/example/all.yaml |
| 51 | - always_declare_return_types |
| 52 | - always_put_control_body_on_new_line |
| 53 | # - always_put_required_named_parameters_first # we prefer having parameters in the same order as fields https://github.com/flutter/flutter/issues/10219 |
| 54 | - always_require_non_null_named_parameters |
| 55 | - always_specify_types |
Alexandre Ardhuin | 73301a3 | 2020-10-16 00:37:04 +0200 | [diff] [blame] | 56 | # - always_use_package_imports # we do this commonly |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 57 | - annotate_overrides |
| 58 | # - avoid_annotating_with_dynamic # conflicts with always_specify_types |
Alexandre Ardhuin | fecf99f | 2019-06-25 17:40:05 +0200 | [diff] [blame] | 59 | - avoid_bool_literals_in_conditional_expressions |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 60 | # - avoid_catches_without_on_clauses # we do this commonly |
| 61 | # - avoid_catching_errors # we do this commonly |
| 62 | - avoid_classes_with_only_static_members |
| 63 | # - avoid_double_and_int_checks # only useful when targeting JS runtime |
Michael Goderbauer | 1512af7 | 2021-03-02 08:34:03 -0800 | [diff] [blame] | 64 | # - avoid_dynamic_calls # not yet tested |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 65 | - avoid_empty_else |
Alexandre Ardhuin | f5a9902 | 2020-04-06 22:36:01 +0200 | [diff] [blame] | 66 | - avoid_equals_and_hash_code_on_mutable_classes |
Alexandre Ardhuin | 73301a3 | 2020-10-16 00:37:04 +0200 | [diff] [blame] | 67 | # - avoid_escaping_inner_quotes # not yet tested |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 68 | - avoid_field_initializers_in_const_classes |
| 69 | - avoid_function_literals_in_foreach_calls |
| 70 | # - avoid_implementing_value_types # not yet tested |
| 71 | - avoid_init_to_null |
| 72 | # - avoid_js_rounded_ints # only useful when targeting JS runtime |
| 73 | - avoid_null_checks_in_equality_operators |
| 74 | # - avoid_positional_boolean_parameters # not yet tested |
Alexandre Ardhuin | 4adad2c | 2019-12-23 18:40:56 +0100 | [diff] [blame] | 75 | # - avoid_print # not yet tested |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 76 | # - avoid_private_typedef_functions # we prefer having typedef (discussion in https://github.com/flutter/flutter/pull/16356) |
Alexandre Ardhuin | 0bd45bc | 2020-02-14 09:43:52 +0100 | [diff] [blame] | 77 | # - avoid_redundant_argument_values # not yet tested |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 78 | - avoid_relative_lib_imports |
| 79 | - avoid_renaming_method_parameters |
| 80 | - avoid_return_types_on_setters |
| 81 | # - avoid_returning_null # there are plenty of valid reasons to return null |
| 82 | # - avoid_returning_null_for_future # not yet tested |
| 83 | - avoid_returning_null_for_void |
| 84 | # - avoid_returning_this # there are plenty of valid reasons to return this |
| 85 | # - avoid_setters_without_getters # not yet tested |
Ian Hickson | 6cff338 | 2020-11-16 11:07:37 -0800 | [diff] [blame] | 86 | - avoid_shadowing_type_parameters |
Alexandre Ardhuin | c2ae654 | 2020-03-05 08:03:26 +0100 | [diff] [blame] | 87 | - avoid_single_cascade_in_expression_statements |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 88 | - avoid_slow_async_io |
Michael Goderbauer | 3594d1a | 2021-03-01 15:50:04 -0800 | [diff] [blame] | 89 | - avoid_type_to_string |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 90 | - avoid_types_as_parameter_names |
| 91 | # - avoid_types_on_closure_parameters # conflicts with always_specify_types |
Michael Goderbauer | ed755fb | 2021-03-04 15:29:03 -0800 | [diff] [blame] | 92 | - avoid_unnecessary_containers |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 93 | - avoid_unused_constructor_parameters |
| 94 | - avoid_void_async |
Alexandre Ardhuin | 4adad2c | 2019-12-23 18:40:56 +0100 | [diff] [blame] | 95 | # - avoid_web_libraries_in_flutter # not yet tested |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 96 | - await_only_futures |
Alexandre Ardhuin | 4adad2c | 2019-12-23 18:40:56 +0100 | [diff] [blame] | 97 | - camel_case_extensions |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 98 | - camel_case_types |
| 99 | - cancel_subscriptions |
| 100 | # - cascade_invocations # not yet tested |
Alexandre Ardhuin | 4acc790 | 2020-10-08 21:05:43 +0200 | [diff] [blame] | 101 | - cast_nullable_to_non_nullable |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 102 | # - close_sinks # not reliable enough |
Michael Goderbauer | 1512af7 | 2021-03-02 08:34:03 -0800 | [diff] [blame] | 103 | # - comment_references # blocked on https://github.com/dart-lang/linter/issues/1142 |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 104 | # - constant_identifier_names # needs an opt-out https://github.com/dart-lang/linter/issues/204 |
| 105 | - control_flow_in_finally |
Ian Hickson | 6cff338 | 2020-11-16 11:07:37 -0800 | [diff] [blame] | 106 | # - curly_braces_in_flow_control_structures # not required by flutter style |
Kate Lovett | fd89029 | 2021-03-08 14:49:03 -0600 | [diff] [blame] | 107 | - deprecated_consistency |
Alexandre Ardhuin | 9a3a749 | 2019-06-25 15:59:15 +0200 | [diff] [blame] | 108 | # - diagnostic_describe_all_properties # not yet tested |
Phil Quitslund | 44157cf | 2021-04-30 17:29:04 -0700 | [diff] [blame] | 109 | - directives_ordering |
Alexandre Ardhuin | 73301a3 | 2020-10-16 00:37:04 +0200 | [diff] [blame] | 110 | # - do_not_use_environment # we do this commonly |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 111 | - empty_catches |
| 112 | - empty_constructor_bodies |
| 113 | - empty_statements |
Alexandre Ardhuin | 73301a3 | 2020-10-16 00:37:04 +0200 | [diff] [blame] | 114 | - exhaustive_cases |
Michael Goderbauer | 7e017d3 | 2021-03-02 15:24:04 -0800 | [diff] [blame] | 115 | - file_names |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 116 | - flutter_style_todos |
| 117 | - hash_and_equals |
| 118 | - implementation_imports |
| 119 | # - invariant_booleans # too many false positives: https://github.com/dart-lang/linter/issues/811 |
| 120 | - iterable_contains_unrelated_type |
Ian Hickson | 6cff338 | 2020-11-16 11:07:37 -0800 | [diff] [blame] | 121 | # - join_return_with_assignment # not required by flutter style |
Alexandre Ardhuin | 73301a3 | 2020-10-16 00:37:04 +0200 | [diff] [blame] | 122 | - leading_newlines_in_multiline_strings |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 123 | - library_names |
| 124 | - library_prefixes |
Michael Goderbauer | b8a2456 | 2021-05-10 16:26:16 -0700 | [diff] [blame^] | 125 | - library_private_types_in_public_api |
Ian Hickson | 6cff338 | 2020-11-16 11:07:37 -0800 | [diff] [blame] | 126 | # - lines_longer_than_80_chars # not required by flutter style |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 127 | - list_remove_unrelated_type |
| 128 | # - literal_only_boolean_expressions # too many false positives: https://github.com/dart-lang/sdk/issues/34181 |
Michael Goderbauer | fc99e7c | 2021-03-01 18:30:17 -0800 | [diff] [blame] | 129 | - missing_whitespace_between_adjacent_strings |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 130 | - no_adjacent_strings_in_list |
Alexandre Ardhuin | 73301a3 | 2020-10-16 00:37:04 +0200 | [diff] [blame] | 131 | # - no_default_cases # too many false positives |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 132 | - no_duplicate_case_values |
Ian Hickson | 6cff338 | 2020-11-16 11:07:37 -0800 | [diff] [blame] | 133 | - no_logic_in_create_state |
| 134 | # - no_runtimeType_toString # ok in tests; we enable this only in packages/ |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 135 | - non_constant_identifier_names |
Alexandre Ardhuin | d2858f0 | 2020-10-08 09:39:13 +0200 | [diff] [blame] | 136 | - null_check_on_nullable_type_parameter |
Michael Goderbauer | ea8e616 | 2021-03-02 15:25:31 -0800 | [diff] [blame] | 137 | - null_closures |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 138 | # - omit_local_variable_types # opposite of always_specify_types |
| 139 | # - one_member_abstracts # too many false positives |
| 140 | # - only_throw_errors # https://github.com/flutter/flutter/issues/5792 |
| 141 | - overridden_fields |
| 142 | - package_api_docs |
Michael Goderbauer | 7e017d3 | 2021-03-02 15:24:04 -0800 | [diff] [blame] | 143 | - package_names |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 144 | - package_prefixed_library_names |
| 145 | # - parameter_assignments # we do this commonly |
| 146 | - prefer_adjacent_string_concatenation |
| 147 | - prefer_asserts_in_initializer_lists |
Ian Hickson | 6cff338 | 2020-11-16 11:07:37 -0800 | [diff] [blame] | 148 | # - prefer_asserts_with_message # not required by flutter style |
Phil Quitslund | 802eca2 | 2019-03-06 11:05:16 -0800 | [diff] [blame] | 149 | - prefer_collection_literals |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 150 | - prefer_conditional_assignment |
Dan Field | fe9512f | 2019-04-29 16:02:42 -0700 | [diff] [blame] | 151 | - prefer_const_constructors |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 152 | - prefer_const_constructors_in_immutables |
| 153 | - prefer_const_declarations |
| 154 | - prefer_const_literals_to_create_immutables |
Ian Hickson | 6cff338 | 2020-11-16 11:07:37 -0800 | [diff] [blame] | 155 | # - prefer_constructors_over_static_methods # far too many false positives |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 156 | - prefer_contains |
Alexandre Ardhuin | 9a3a749 | 2019-06-25 15:59:15 +0200 | [diff] [blame] | 157 | # - prefer_double_quotes # opposite of prefer_single_quotes |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 158 | - prefer_equal_for_default_values |
| 159 | # - prefer_expression_function_bodies # conflicts with https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#consider-using--for-short-functions-and-methods |
| 160 | - prefer_final_fields |
Alexandre Ardhuin | 4f9b6cf | 2020-01-07 16:32:04 +0100 | [diff] [blame] | 161 | - prefer_final_in_for_each |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 162 | - prefer_final_locals |
Alexandre Ardhuin | a541934 | 2020-01-08 17:03:02 +0100 | [diff] [blame] | 163 | - prefer_for_elements_to_map_fromIterable |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 164 | - prefer_foreach |
Michael Goderbauer | 807bb29 | 2021-03-05 18:29:04 -0800 | [diff] [blame] | 165 | - prefer_function_declarations_over_variables |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 166 | - prefer_generic_function_type_aliases |
Alexandre Ardhuin | df4bf45 | 2019-09-17 16:23:44 +0200 | [diff] [blame] | 167 | - prefer_if_elements_to_conditional_expressions |
Alexandre Ardhuin | b041a58 | 2019-07-09 10:53:35 +0200 | [diff] [blame] | 168 | - prefer_if_null_operators |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 169 | - prefer_initializing_formals |
Alexandre Ardhuin | 919dcf5 | 2019-06-27 21:23:16 +0200 | [diff] [blame] | 170 | - prefer_inlined_adds |
Michael Goderbauer | 0f56829 | 2021-03-02 10:14:02 -0800 | [diff] [blame] | 171 | # - prefer_int_literals # conflicts with https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#use-double-literals-for-double-constants |
| 172 | # - prefer_interpolation_to_compose_strings # doesn't work with raw strings, see https://github.com/dart-lang/linter/issues/2490 |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 173 | - prefer_is_empty |
Alexandre Ardhuin | c0125cb | 2019-05-20 17:00:45 +0200 | [diff] [blame] | 174 | - prefer_is_not_empty |
Alexandre Ardhuin | 4adad2c | 2019-12-23 18:40:56 +0100 | [diff] [blame] | 175 | - prefer_is_not_operator |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 176 | - prefer_iterable_whereType |
| 177 | # - prefer_mixin # https://github.com/dart-lang/language/issues/32 |
Michael Goderbauer | 6586a06 | 2021-03-02 16:14:03 -0800 | [diff] [blame] | 178 | - prefer_null_aware_operators |
Michael Goderbauer | cb867bb | 2021-03-05 18:38:15 -0800 | [diff] [blame] | 179 | # - prefer_relative_imports # incompatible with sub-package imports |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 180 | - prefer_single_quotes |
Alexandre Ardhuin | 919dcf5 | 2019-06-27 21:23:16 +0200 | [diff] [blame] | 181 | - prefer_spread_collections |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 182 | - prefer_typing_uninitialized_variables |
| 183 | - prefer_void_to_null |
Michael Goderbauer | d320937 | 2021-03-02 16:34:05 -0800 | [diff] [blame] | 184 | - provide_deprecation_message |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 185 | # - public_member_api_docs # enabled on a case-by-case basis; see e.g. packages/analysis_options.yaml |
| 186 | - recursive_getters |
Greg Spencer | c6ef4c7 | 2021-03-04 01:29:02 +0000 | [diff] [blame] | 187 | - sized_box_for_whitespace |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 188 | - slash_for_doc_comments |
Alexandre Ardhuin | 9a3a749 | 2019-06-25 15:59:15 +0200 | [diff] [blame] | 189 | # - sort_child_properties_last # not yet tested |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 190 | - sort_constructors_first |
Phil Quitslund | 1fef591 | 2020-09-23 21:37:08 -0700 | [diff] [blame] | 191 | # - sort_pub_dependencies # prevents separating pinned transitive dependencies |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 192 | - sort_unnamed_constructors_first |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 193 | - test_types_in_equals |
| 194 | - throw_in_finally |
Alexandre Ardhuin | d2858f0 | 2020-10-08 09:39:13 +0200 | [diff] [blame] | 195 | - tighten_type_of_initializing_formals |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 196 | # - type_annotate_public_apis # subset of always_specify_types |
| 197 | - type_init_formals |
| 198 | # - unawaited_futures # too many false positives |
Michael Goderbauer | cb867bb | 2021-03-05 18:38:15 -0800 | [diff] [blame] | 199 | - unnecessary_await_in_return |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 200 | - unnecessary_brace_in_string_interps |
| 201 | - unnecessary_const |
Alexandre Ardhuin | 4adad2c | 2019-12-23 18:40:56 +0100 | [diff] [blame] | 202 | # - unnecessary_final # conflicts with prefer_final_locals |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 203 | - unnecessary_getters_setters |
| 204 | # - unnecessary_lambdas # has false positives: https://github.com/dart-lang/linter/issues/498 |
| 205 | - unnecessary_new |
| 206 | - unnecessary_null_aware_assignments |
Alexandre Ardhuin | 73301a3 | 2020-10-16 00:37:04 +0200 | [diff] [blame] | 207 | # - unnecessary_null_checks # not yet tested |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 208 | - unnecessary_null_in_if_null_operators |
Alexandre Ardhuin | 71c1f6c | 2020-09-23 06:39:47 +0200 | [diff] [blame] | 209 | - unnecessary_nullable_for_final_variable_declarations |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 210 | - unnecessary_overrides |
| 211 | - unnecessary_parenthesis |
Alexandre Ardhuin | 73301a3 | 2020-10-16 00:37:04 +0200 | [diff] [blame] | 212 | # - unnecessary_raw_strings # not yet tested |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 213 | - unnecessary_statements |
Alexandre Ardhuin | 17cdf55 | 2020-10-26 20:42:05 +0100 | [diff] [blame] | 214 | - unnecessary_string_escapes |
Alexandre Ardhuin | 0bd45bc | 2020-02-14 09:43:52 +0100 | [diff] [blame] | 215 | - unnecessary_string_interpolations |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 216 | - unnecessary_this |
| 217 | - unrelated_type_equality_checks |
Alexandre Ardhuin | 9a3a749 | 2019-06-25 15:59:15 +0200 | [diff] [blame] | 218 | # - unsafe_html # not yet tested |
Alexandre Ardhuin | b5ce061 | 2019-06-25 17:58:19 +0200 | [diff] [blame] | 219 | - use_full_hex_values_for_flutter_colors |
Michael Goderbauer | 7b251f5 | 2021-03-04 08:59:17 -0800 | [diff] [blame] | 220 | - use_function_type_syntax_for_parameters |
Michael Goderbauer | 1512af7 | 2021-03-02 08:34:03 -0800 | [diff] [blame] | 221 | # - use_if_null_to_convert_nulls_to_bools # not yet tested |
Alexandre Ardhuin | c0176c9 | 2020-10-16 20:20:00 +0200 | [diff] [blame] | 222 | - use_is_even_rather_than_modulo |
Michael Goderbauer | 0f56829 | 2021-03-02 10:14:02 -0800 | [diff] [blame] | 223 | - use_key_in_widget_constructors |
Ian Hickson | 8a6a76a | 2020-08-27 16:38:10 -0700 | [diff] [blame] | 224 | - use_late_for_private_fields_and_variables |
Jehun Seem(심제훈) | 78a1a0c | 2021-03-17 11:05:03 -0700 | [diff] [blame] | 225 | # - use_named_constants # not yet tested |
Alexandre Ardhuin | 17cdf55 | 2020-10-26 20:42:05 +0100 | [diff] [blame] | 226 | - use_raw_strings |
Dan Field | 8af3e48 | 2019-01-11 13:38:02 -0800 | [diff] [blame] | 227 | - use_rethrow_when_possible |
| 228 | # - use_setters_to_change_properties # not yet tested |
| 229 | # - use_string_buffers # has false positives: https://github.com/dart-lang/sdk/issues/34182 |
| 230 | # - use_to_and_as_if_applicable # has false positives, so we prefer to catch this by code-review |
| 231 | - valid_regexps |
Ian Hickson | e2b169e | 2020-01-13 10:03:01 -0800 | [diff] [blame] | 232 | - void_checks |