|
1 | 1 | # https://dart.dev/guides/language/analysis-options
|
2 |
| -include: package:lints/recommended.yaml |
| 2 | +include: package:dart_flutter_team_lints/analysis_options.yaml |
3 | 3 |
|
4 | 4 | analyzer:
|
5 | 5 | language:
|
6 |
| - strict-casts: true |
7 | 6 | strict-raw-types: true
|
8 | 7 |
|
9 | 8 | linter:
|
10 | 9 | rules:
|
11 |
| - - always_declare_return_types |
12 | 10 | - avoid_bool_literals_in_conditional_expressions
|
13 |
| - - avoid_catching_errors |
14 | 11 | - avoid_classes_with_only_static_members
|
15 |
| - - avoid_dynamic_calls |
16 | 12 | - avoid_private_typedef_functions
|
17 | 13 | - avoid_redundant_argument_values
|
18 |
| - - avoid_returning_null |
19 | 14 | - avoid_returning_null_for_future
|
20 | 15 | - avoid_returning_this
|
21 | 16 | - avoid_unused_constructor_parameters
|
22 | 17 | - avoid_void_async
|
23 | 18 | - cancel_subscriptions
|
24 | 19 | - comment_references
|
25 |
| - - directives_ordering |
26 | 20 | - join_return_with_assignment
|
27 |
| - - lines_longer_than_80_chars |
28 | 21 | - literal_only_boolean_expressions
|
29 | 22 | - missing_whitespace_between_adjacent_strings
|
30 | 23 | - no_adjacent_strings_in_list
|
31 | 24 | - no_runtimeType_toString
|
32 |
| - - omit_local_variable_types |
33 |
| - - only_throw_errors |
34 | 25 | - package_api_docs
|
35 |
| - - prefer_asserts_in_initializer_lists |
36 | 26 | - prefer_const_constructors
|
37 | 27 | - prefer_const_declarations
|
38 | 28 | - prefer_expression_function_bodies
|
39 | 29 | - prefer_final_locals
|
40 | 30 | - prefer_relative_imports
|
41 |
| - - prefer_single_quotes |
42 |
| - - sort_pub_dependencies |
43 | 31 | - test_types_in_equals
|
44 |
| - - throw_in_finally |
45 |
| - - type_annotate_public_apis |
46 |
| - - unawaited_futures |
47 | 32 | - unnecessary_await_in_return
|
48 |
| - - unnecessary_lambdas |
49 |
| - - unnecessary_parenthesis |
50 | 33 | - unnecessary_raw_strings
|
51 |
| - - unnecessary_statements |
52 | 34 | - use_if_null_to_convert_nulls_to_bools
|
53 | 35 | - use_raw_strings
|
54 | 36 | - use_string_buffers
|
|
0 commit comments