-
Notifications
You must be signed in to change notification settings - Fork 1
/
analysis_options.yaml
101 lines (97 loc) · 3.02 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
include: package:sizzle_lints/sizzle_lints.yaml
analyzer:
errors:
depend_on_referenced_packages: ignore
invalid_use_of_visible_for_testing_member: ignore
linter:
rules:
public_member_api_docs: false
lines_longer_than_80_chars: false
dart_code_metrics:
metrics:
cyclomatic-complexity: 20
rules:
# Show potential errors
- avoid-cascade-after-if-null
- avoid-collection-methods-with-unrelated-types
- avoid-duplicate-exports
- avoid-dynamic
- avoid-missing-enum-constant-in-map
- avoid-throw-in-catch-block
- avoid-unused-parameters
- avoid-unnecessary-type-casts
- avoid-unrelated-type-assertions
- avoid-unrelated-type-casts
- no-empty-block
- no-equal-then-else
- prefer-correct-test-file-name
- prefer-return-await
- avoid-self-assignment
- avoid-self-compare
- prefer-iterable-of
- no-equal-switch-case
- no-equal-conditions
- avoid-equal-expressions
- avoid-missed-calls
- avoid-unnecessary-negations
- avoid-unused-generics
- function-always-returns-null
- avoid-throw-objects-without-tostring
- prefer-wildcard-pattern
- no-equal-switch-expression-cases
- avoid-future-tostring
- avoid-nested-futures
- avoid-generics-shadowing
- prefer-parentheses-with-if-null
- no-equal-nested-conditions
- avoid-shadowed-extension-methods
- avoid-unnecessary-conditionals
- avoid-double-slash-imports
- avoid-map-keys-contains
- prefer-correct-json-casts
- avoid-duplicate-mixins
- avoid-unused-instances
- prefer-correct-for-loop-increment
- prefer-public-exception-classes
- avoid-uncaught-future-errors
- always-remove-listener
- avoid-unnecessary-setstate
- check-for-equals-in-render-object-setters
- consistent-update-render-object
- use-setstate-synchronously
- avoid-incomplete-copy-with
- proper-super-calls
- dispose-fields
- avoid-empty-setstate
- avoid-state-constructors
- avoid-recursive-widget-calls
- avoid-missing-image-alt
- avoid-passing-self-as-argument
- avoid-unnecessary-if
- avoid-unconditional-break
- avoid-referencing-discarded-variables
# Code simplification
- avoid-redundant-async
- avoid-redundant-else
- avoid-unnecessary-nullable-return-type
- avoid-redundant-pragma-inline
- avoid-nested-records
- avoid-redundant-positional-field-name
- avoid-explicit-pattern-field-name
- prefer-simpler-patterns-null-check
- avoid-unnecessary-return
- avoid-duplicate-patterns
- avoid-keywords-in-wildcard-pattern
- avoid-unnecessary-futures
- avoid-unnecessary-reassignment
- avoid-unnecessary-call
- avoid-unnecessary-stateful-widgets
- prefer-dedicated-media-query-methods
- avoid-unnecessary-overrides-in-state
- move-variable-closer-to-its-usage
# Style
- prefer-trailing-comma
- unnecessary-trailing-comma
- prefer-declaring-const-constructor
- prefer-single-widget-per-file:
ignore-private-widgets: true