-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathanalysis_options.yaml
122 lines (118 loc) · 3.18 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
analyzer:
plugins:
- dart_code_metrics
dart_code_metrics:
metrics:
cyclomatic-complexity: 20
number-of-parameters: 4
maximum-nesting-level: 3
metrics-exclude:
- test/**
rules:
- avoid-unnecessary-type-assertions
- avoid-unrelated-type-assertions
- avoid-nested-conditional-expressions
- no-boolean-literal-compare
- no-empty-block
- prefer-conditional-expressions
- no-equal-then-else
- prefer-moving-to-variable
- prefer-match-file-name
- avoid-double-slash-imports
- no-object-declaration
- member-ordering:
order:
- constructors
- private-fields
- public-fields
- close-method
- dispose-method
widgets-order:
- constructor
- build-method
- init-state-method
- did-change-dependencies-method
- did-update-widget-method
- dispose-method
- format-comment:
only-doc-comments: true
ignored-patterns:
- "@nodoc"
- no-boolean-literal-compare:
severity: error
- double-literal-format:
severity: error
- no-equal-arguments:
severity: error
- no-equal-then-else:
severity: error
- binary-expression-operand-order:
severity: error
- avoid-unnecessary-type-assertions:
severity: error
- avoid-unnecessary-conditionals:
severity: error
- avoid-nested-conditional-expressions:
acceptable-level: 2
severity: error
- avoid-missing-enum-constant-in-map:
severity: error
- avoid-dynamic:
severity: error
- avoid-global-state:
severity: error
- avoid-redundant-async:
severity: error
- avoid-unnecessary-type-casts:
severity: error
- prefer-trailing-comma:
severity: error
- arguments-ordering:
child-last: true
severity: error
- newline-before-return:
severity: error
- prefer-async-await:
severity: error
- prefer-commenting-analyzer-ignores:
severity: error
- prefer-conditional-expressions:
severity: error
- avoid-collection-methods-with-unrelated-types:
strict: false
severity: error
- prefer-correct-type-name:
excluded: [ 'exampleExclude' ]
min-length: 3
max-length: 40
severity: error
- prefer-first:
severity: error
- prefer-iterable-of:
severity: error
- prefer-last:
severity: error
- prefer-moving-to-variable:
allowed-duplicated-chains: 3
severity: error
- always-remove-listener:
severity: error
- avoid-returning-widgets:
ignored-names:
- testFunction
ignored-annotations:
- allowedAnnotation
- avoid-unnecessary-setstate:
severity: error
- avoid-wrapping-in-padding:
severity: error
- check-for-equals-in-render-object-setters:
severity: error
- consistent-update-render-object:
severity: error
- prefer-correct-edge-insets-constructor:
severity: error
- use-setstate-synchronously:
severity: error
rules-exclude:
- test/**