@@ -14,11 +14,11 @@ dart_code_metrics:
14
14
rules :
15
15
# ## Common
16
16
# - arguments-ordering # way too pedantic
17
- # - avoid-accessing-other-classes-private-members # TODO?
17
+ - avoid-accessing-other-classes-private-members
18
18
# - avoid-banned-file-names
19
19
# - avoid-banned-imports
20
20
# - avoid-banned-types
21
- - avoid-barrel-files # TODO?
21
+ # - avoid-barrel-files # for now we use them
22
22
- avoid-bottom-type-in-patterns
23
23
- avoid-bottom-type-in-records
24
24
- avoid-cascade-after-if-null
@@ -43,15 +43,15 @@ dart_code_metrics:
43
43
- avoid-keywords-in-wildcard-pattern
44
44
# - avoid-late-keyword
45
45
# - avoid-long-functions # way too pedantic
46
- # - avoid-long-parameter-list: # TODO: ?
46
+ # - avoid-long-parameter-list: # way too pedantic
47
47
# ignore-optional: true # exclude optional and (non-required) named parameters
48
48
- avoid-long-records
49
49
- avoid-missed-calls
50
50
- avoid-missing-enum-constant-in-map
51
51
- avoid-misused-wildcard-pattern
52
52
- avoid-mixing-named-and-positional-fields
53
- # - avoid-mutating-parameters # TODO: ?
54
- # - avoid-negated-conditions # TODO: ?
53
+ # - avoid-mutating-parameters # we use ValueNotifier etc.
54
+ - avoid-negated-conditions # TODO: ?
55
55
- avoid-nested-conditional-expressions :
56
56
acceptable-level : 2
57
57
- avoid-nested-futures
@@ -108,7 +108,7 @@ dart_code_metrics:
108
108
only-doc-comments : true
109
109
# - format-test-name # good but painful
110
110
- function-always-returns-null
111
- - map-keys-ordering # TODO?
111
+ - map-keys-ordering
112
112
# - match-positional-field-names-on-assignment # not compatible with avoid-redundant-positional-field-name
113
113
- member-ordering :
114
114
order :
@@ -165,7 +165,7 @@ dart_code_metrics:
165
165
- prefer-bytes-builder
166
166
- prefer-commenting-analyzer-ignores
167
167
- prefer-conditional-expressions
168
- - prefer-correct-error-name # TODO: ?
168
+ - prefer-correct-error-name # TODO: we use `e`
169
169
- prefer-correct-future-return-type
170
170
# - prefer-correct-identifier-length # way too pedantic
171
171
- prefer-correct-stream-return-type
@@ -215,12 +215,12 @@ dart_code_metrics:
215
215
- avoid-incomplete-copy-with
216
216
- avoid-inherited-widget-in-initstate
217
217
- avoid-late-context
218
- - avoid-missing-image-alt # TODO?
218
+ - avoid-missing-image-alt
219
219
- avoid-returning-widgets
220
220
- avoid-shrink-wrap-in-lists
221
221
- avoid-state-constructors
222
222
- avoid-stateless-widget-initialized-fields
223
- - avoid-unnecessary-overrides-in-state # TODO?
223
+ - avoid-unnecessary-overrides-in-state
224
224
- avoid-unnecessary-setstate
225
225
- avoid-unnecessary-stateful-widgets
226
226
- avoid-wrapping-in-padding
0 commit comments