-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalysis_options.yaml
48 lines (45 loc) · 1.3 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
include: package:lint/analysis_options.yaml
linter:
rules:
- prefer_single_quotes
- omit_local_variable_types
- avoid_relative_lib_imports
- await_only_futures
- prefer_spread_collections
- prefer_typing_uninitialized_variables
analyzer:
enable-experiment:
- non-nullable
strong-mode:
implicit-casts: false
errors:
missing_default_value_for_parameter: info
non_constant_identifier_names: ignore
avoid_classes_with_only_static_members: ignore
avoid_redundant_argument_values: ignore
prefer_const_declarations: error
constant_identifier_names: ignore
missing_required_param: error
parameter_assignments: error
unused_import: error
sort_constructors_first: warning
unused_field: warning
unused_element: ignore
overridden_fields: ignore
unawaited_futures: warning
unnecessary_final: error
prefer_single_quotes: error
omit_local_variable_types: error
always_put_required_named_parameters_first: error
avoid_relative_lib_imports: error
await_only_futures: error
prefer_typing_uninitialized_variables: error
exclude:
- "vendors/**"
- "assets/**"
- lib/main.dart
- "**/*.g.dart"
- "**/*.gr.dart"
- "lib/generated/**"
- "lib/common/router/router.gr.dart"
- "component_templates"