-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathanalysis_options.yaml
68 lines (67 loc) · 2.31 KB
/
analysis_options.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
linter:
rules:
avoid_print: true
always_declare_return_types: true
no_duplicate_case_values: true
always_put_required_named_parameters_first: true
always_require_non_null_named_parameters: true
annotate_overrides: true
avoid_unnecessary_containers: true
avoid_unused_constructor_parameters: true
camel_case_extensions: true #optional
camel_case_types: true #optional
file_names: true
prefer_adjacent_string_concatenation: true
prefer_const_constructors: true
prefer_const_declarations: true
prefer_final_fields: true
prefer_interpolation_to_compose_strings: true # optional
prefer_is_empty: true # optional
prefer_is_not_operator: true # optional
public_member_api_docs: false # optional
sort_child_properties_last: true
unnecessary_await_in_return: true
unnecessary_parenthesis: true # optional
sort_unnamed_constructors_first: true # optional
diagnostic_describe_all_properties: false
analyzer:
exclude:
- build/**
- lib/**/*.g.dart
- lib/**/*.chopper.dart
- lib/**/*.freezed.dart
- lib/**/*.gr.dart
- lib/**/*.rc.dart
- lib/**/*.i18n.dart
- lib/injectable.config.dart
strong-mode:
# Always declare the variable type
implicit-casts: false
# No dynamic by default
implicit-dynamic: false
errors:
missing_required_param: error
avoid_print: info
diagnostic_describe_all_properties: info
always_declare_return_types: error
no_duplicate_case_values: error
always_put_required_named_parameters_first: info
always_require_non_null_named_parameters: error
annotate_overrides: error
avoid_unnecessary_containers: error
avoid_unused_constructor_parameters: warning
camel_case_extensions: info #optional
camel_case_types: info #optional
file_names: warning
prefer_adjacent_string_concatenation: warning
prefer_const_constructors: warning
prefer_const_declarations: warning
prefer_final_fields: warning
prefer_interpolation_to_compose_strings: info # optional
prefer_is_empty: info # optional
prefer_is_not_operator: info # optional
public_member_api_docs: info
sort_child_properties_last: info
unnecessary_await_in_return: warning
unnecessary_parenthesis: info # optional
sort_unnamed_constructors_first: info # optional