-
-
Notifications
You must be signed in to change notification settings - Fork 189
/
analysis_options.yaml
63 lines (57 loc) · 1.59 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
linter:
rules:
analyzer:
plugins:
- dart_code_metrics
dart_code_metrics:
extends:
- ... # configures the list of preset configurations
metrics:
cyclomatic-complexity: 20
lines-of-code: 100
maximum-nesting-level: 4
number-of-parameters: 4
rules:
- avoid-dynamic
- avoid-redundant-async
- 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
- avoid-duplicate-exports
- avoid-dynamic
- avoid-late-keyword
- avoid-nested-conditional-expressions
- avoid-unnecessary-type-assertions
- avoid-unnecessary-type-casts
- member-ordering
- no-magic-number
- prefer-trailing-comma
- always-remove-listener
- avoid-border-all
- avoid-expanded-as-spacer
- avoid-wrapping-in-padding
- prefer-const-border-radius
- prefer-correct-edge-insets-constructor
- prefer-single-widget-per-file
# - arguments-ordering:
# child-last: true
# - prefer-match-file-name rules-exclude:
# - ... # configures the list of files that should be ignored by rules
# anti-patterns:
# - ... # configures the list of anti-patterns
exclude:
- "example/**"
- "build/**"
- "**/*.g.dart"
- "**/*.freezed.dart"