-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalysis_options.yaml
50 lines (47 loc) · 1.24 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
include: package:lints/recommended.yaml
linter:
rules:
- camel_case_types
- always_declare_return_types
- sort_pub_dependencies
- always_use_package_imports
- avoid_slow_async_io
analyzer:
plugins:
- dart_code_linter
language:
strict-casts: true
strict-inference: true
strict-raw-types: true
errors:
constant_identifier_names: ignore
non_constant_identifier_names: ignore
unused_element: error
unused_field: error
unused_local_variable: error
unused_import: error
invalid_annotation_target: ignore
#dart_code_linter:
# metrics:
# cyclomatic-complexity: 20
# number-of-parameters: 4
# maximum-nesting-level: 5
# metrics-exclude:
# - test/**
# rules:
# - avoid-dynamic
# - avoid-passing-async-when-sync-expected
# - avoid-redundant-async
# - avoid-unnecessary-type-assertions
# - avoid-unnecessary-type-casts
# - avoid-unrelated-type-assertions
# - avoid-unused-parameters
# - avoid-nested-conditional-expressions
# - newline-before-return
# - no-boolean-literal-compare
# - no-empty-block
# - prefer-trailing-comma
# - prefer-conditional-expressions
# - no-equal-then-else
# - prefer-moving-to-variable
# - prefer-match-file-name