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 :
@@ -9,49 +9,26 @@ analyzer:
9
9
10
10
linter :
11
11
rules :
12
- - always_declare_return_types
13
12
- avoid_bool_literals_in_conditional_expressions
14
- - avoid_catching_errors
15
13
- avoid_classes_with_only_static_members
16
- - avoid_dynamic_calls
17
14
- avoid_private_typedef_functions
18
15
- avoid_redundant_argument_values
19
- - avoid_returning_null
20
- - avoid_returning_null_for_future
21
16
- avoid_returning_this
22
17
- avoid_unused_constructor_parameters
23
18
- avoid_void_async
24
19
- cancel_subscriptions
25
- - comment_references
26
- - directives_ordering
27
20
- join_return_with_assignment
28
- - lines_longer_than_80_chars
29
21
- literal_only_boolean_expressions
30
22
- missing_whitespace_between_adjacent_strings
31
23
- no_adjacent_strings_in_list
32
24
- no_runtimeType_toString
33
- - omit_local_variable_types
34
- - only_throw_errors
35
25
- package_api_docs
36
- - prefer_asserts_in_initializer_lists
37
- - prefer_const_constructors
38
26
- prefer_const_declarations
39
27
- prefer_expression_function_bodies
40
28
- prefer_final_locals
41
- - prefer_relative_imports
42
- - prefer_single_quotes
43
- - sort_pub_dependencies
44
- - test_types_in_equals
45
- - throw_in_finally
46
- - type_annotate_public_apis
47
- - unawaited_futures
48
29
- unnecessary_await_in_return
49
- - unnecessary_lambdas
50
- - unnecessary_parenthesis
51
30
- unnecessary_raw_strings
52
- - unnecessary_statements
53
31
- use_if_null_to_convert_nulls_to_bools
54
32
- use_raw_strings
55
33
- use_string_buffers
56
- - use_super_parameters
57
34
- require_trailing_commas
0 commit comments