-
Notifications
You must be signed in to change notification settings - Fork 0
/
analysis_options.yaml
61 lines (57 loc) · 1.38 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
include: package:very_good_analysis/analysis_options.yaml
analyzer:
strong-mode:
implicit-casts: false
implicit-dynamic: true
exclude:
- "example/**"
- "lib/generated/**"
- "build/**"
# - "test/**"
- "**/*.g.dart"
- "**/*.freezed.dart"
plugins:
- dart_code_metrics
linter:
rules:
public_member_api_docs: false
sort_constructors_first: false
avoid_print: true
avoid_redundant_argument_values: false
dart_code_metrics:
anti-patterns:
- long-method
- long-parameter-list
metrics:
cyclomatic-complexity: 6
maximum-nesting-level: 5
source-lines-of-code: 100
metrics-exclude:
- test/**
- lib/generated/**
rules:
- newline-before-return
- no-boolean-literal-compare
- no-empty-block
- prefer-trailing-comma
- prefer-conditional-expressions
- no-equal-then-else
- prefer-async-await
- avoid-missing-enum-constant-in-map
# - avoid-ignoring-return-values
- avoid-global-state
# - avoid-dynamic
# - no-magic-number:
# allowed: [0,1,2,3,4,5,6,7,8,9,10]
- prefer-first
- prefer-immediate-return
- prefer-last
- always-remove-listener
- avoid-border-all
- avoid-returning-widgets
- avoid-wrapping-in-padding
- prefer-const-border-radius
- prefer-extracting-callbacks
- prefer-single-widget-per-file
rules-exclude:
- lib/generated/**