1
- # https://dart.dev/guides/language/ analysis- options
2
- include : package:lints/recommended .yaml
1
+ # https://dart.dev/tools/ analysis#the-analysis- options-file
2
+ include : package:dart_flutter_team_lints/analysis_options .yaml
3
3
4
4
analyzer :
5
5
language :
@@ -9,47 +9,25 @@ 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_for_future
20
16
- avoid_returning_this
21
17
- avoid_unused_constructor_parameters
22
18
- avoid_void_async
23
19
- cancel_subscriptions
24
- - 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
- - prefer_const_constructors
37
26
- prefer_const_declarations
38
27
- prefer_expression_function_bodies
39
28
- prefer_final_locals
40
- - prefer_relative_imports
41
- - prefer_single_quotes
42
- - sort_pub_dependencies
43
- - test_types_in_equals
44
- - throw_in_finally
45
- - type_annotate_public_apis
46
- - unawaited_futures
47
29
- unnecessary_await_in_return
48
- - unnecessary_lambdas
49
- - unnecessary_parenthesis
50
30
- unnecessary_raw_strings
51
- - unnecessary_statements
52
31
- use_if_null_to_convert_nulls_to_bools
53
32
- use_raw_strings
54
33
- use_string_buffers
55
- - use_super_parameters
0 commit comments