|
| 1 | +# https://dart.dev/guides/language/analysis-options |
1 | 2 | include: package:lints/recommended.yaml |
2 | 3 |
|
3 | 4 | analyzer: |
4 | | - strong-mode: |
5 | | - implicit-casts: false |
| 5 | + language: |
| 6 | + strict-casts: true |
| 7 | + strict-raw-types: true |
6 | 8 |
|
7 | 9 | linter: |
8 | 10 | rules: |
9 | | - - annotate_overrides |
| 11 | + - always_declare_return_types |
| 12 | + - avoid_bool_literals_in_conditional_expressions |
| 13 | + - avoid_catching_errors |
| 14 | + - avoid_classes_with_only_static_members |
10 | 15 | - avoid_dynamic_calls |
11 | | - - avoid_function_literals_in_foreach_calls |
12 | | - - avoid_init_to_null |
13 | | - - avoid_null_checks_in_equality_operators |
14 | | - - avoid_relative_lib_imports |
| 16 | + - avoid_private_typedef_functions |
| 17 | + - avoid_redundant_argument_values |
15 | 18 | - avoid_returning_null |
| 19 | + - avoid_returning_null_for_future |
| 20 | + - avoid_returning_this |
16 | 21 | - avoid_unused_constructor_parameters |
17 | | - - await_only_futures |
18 | | - - camel_case_types |
| 22 | + - avoid_void_async |
19 | 23 | - cancel_subscriptions |
20 | 24 | - comment_references |
21 | | - # See https://github.com/dart-lang/logging/issues/43 |
22 | | - #- constant_identifier_names |
23 | | - - control_flow_in_finally |
24 | 25 | - directives_ordering |
25 | | - - empty_catches |
26 | | - - empty_constructor_bodies |
27 | | - - empty_statements |
28 | | - - hash_and_equals |
29 | | - - implementation_imports |
30 | | - - iterable_contains_unrelated_type |
31 | | - - library_names |
32 | | - - library_prefixes |
33 | | - - list_remove_unrelated_type |
| 26 | + - join_return_with_assignment |
| 27 | + - lines_longer_than_80_chars |
| 28 | + - literal_only_boolean_expressions |
| 29 | + - missing_whitespace_between_adjacent_strings |
34 | 30 | - no_adjacent_strings_in_list |
35 | | - - non_constant_identifier_names |
| 31 | + - no_runtimeType_toString |
36 | 32 | - omit_local_variable_types |
37 | 33 | - only_throw_errors |
38 | | - - overridden_fields |
39 | 34 | - package_api_docs |
40 | | - - package_names |
41 | | - - package_prefixed_library_names |
42 | | - - prefer_adjacent_string_concatenation |
43 | | - - prefer_collection_literals |
44 | | - - prefer_conditional_assignment |
| 35 | + - prefer_asserts_in_initializer_lists |
45 | 36 | - prefer_const_constructors |
46 | | - - prefer_final_fields |
47 | | - - prefer_generic_function_type_aliases |
48 | | - - prefer_initializing_formals |
49 | | - - prefer_interpolation_to_compose_strings |
| 37 | + - prefer_const_declarations |
| 38 | + - prefer_expression_function_bodies |
| 39 | + - prefer_final_locals |
| 40 | + - prefer_relative_imports |
50 | 41 | - prefer_single_quotes |
51 | | - - prefer_typing_uninitialized_variables |
52 | | - - slash_for_doc_comments |
| 42 | + - sort_pub_dependencies |
53 | 43 | - test_types_in_equals |
54 | 44 | - throw_in_finally |
55 | | - - type_init_formals |
56 | | - - unnecessary_brace_in_string_interps |
57 | | - - unnecessary_const |
58 | | - - unnecessary_getters_setters |
| 45 | + - type_annotate_public_apis |
| 46 | + - unawaited_futures |
| 47 | + - unnecessary_await_in_return |
59 | 48 | - unnecessary_lambdas |
60 | | - - unnecessary_new |
61 | | - - unnecessary_null_aware_assignments |
| 49 | + - unnecessary_parenthesis |
| 50 | + - unnecessary_raw_strings |
62 | 51 | - unnecessary_statements |
63 | | - - unnecessary_this |
| 52 | + - use_if_null_to_convert_nulls_to_bools |
| 53 | + - use_raw_strings |
| 54 | + - use_string_buffers |
| 55 | + - use_super_parameters |
0 commit comments