-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathanalysis_options.yaml
102 lines (98 loc) · 2.67 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
analyzer:
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
- prefer-conditional-expressions
- no-equal-then-else
- prefer-moving-to-variable
- prefer-match-file-name
- avoid-double-slash-imports
- member-ordering:
order:
- private-fields
- public-fields
- constructors
- 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"
severity: error
- double-literal-format:
severity: error
- binary-expression-operand-order:
severity: error
- avoid-unnecessary-conditionals:
severity: error
- avoid-missing-enum-constant-in-map:
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-commenting-analyzer-ignores:
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
- 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
- prefer-extracting-callbacks:
severity: error
ignored-named-arguments:
- onPressed
allowed-line-count: 3
- use-setstate-synchronously:
severity: error
rules-exclude:
- test/**