Skip to content

Commit 5afec44

Browse files
committed
Update lints
1 parent e99e440 commit 5afec44

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/dcm.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ dart_code_metrics:
1414
rules:
1515
### Common
1616
# - arguments-ordering # way too pedantic
17-
# - avoid-accessing-other-classes-private-members # TODO?
17+
- avoid-accessing-other-classes-private-members
1818
# - avoid-banned-file-names
1919
# - avoid-banned-imports
2020
# - avoid-banned-types
21-
- avoid-barrel-files # TODO?
21+
# - avoid-barrel-files # for now we use them
2222
- avoid-bottom-type-in-patterns
2323
- avoid-bottom-type-in-records
2424
- avoid-cascade-after-if-null
@@ -43,15 +43,15 @@ dart_code_metrics:
4343
- avoid-keywords-in-wildcard-pattern
4444
# - avoid-late-keyword
4545
# - avoid-long-functions # way too pedantic
46-
# - avoid-long-parameter-list: # TODO: ?
46+
# - avoid-long-parameter-list: # way too pedantic
4747
# ignore-optional: true # exclude optional and (non-required) named parameters
4848
- avoid-long-records
4949
- avoid-missed-calls
5050
- avoid-missing-enum-constant-in-map
5151
- avoid-misused-wildcard-pattern
5252
- 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: ?
5555
- avoid-nested-conditional-expressions:
5656
acceptable-level: 2
5757
- avoid-nested-futures
@@ -108,7 +108,7 @@ dart_code_metrics:
108108
only-doc-comments: true
109109
# - format-test-name # good but painful
110110
- function-always-returns-null
111-
- map-keys-ordering # TODO?
111+
- map-keys-ordering
112112
# - match-positional-field-names-on-assignment # not compatible with avoid-redundant-positional-field-name
113113
- member-ordering:
114114
order:
@@ -165,7 +165,7 @@ dart_code_metrics:
165165
- prefer-bytes-builder
166166
- prefer-commenting-analyzer-ignores
167167
- prefer-conditional-expressions
168-
- prefer-correct-error-name # TODO: ?
168+
- prefer-correct-error-name # TODO: we use `e`
169169
- prefer-correct-future-return-type
170170
# - prefer-correct-identifier-length # way too pedantic
171171
- prefer-correct-stream-return-type
@@ -215,12 +215,12 @@ dart_code_metrics:
215215
- avoid-incomplete-copy-with
216216
- avoid-inherited-widget-in-initstate
217217
- avoid-late-context
218-
- avoid-missing-image-alt # TODO?
218+
- avoid-missing-image-alt
219219
- avoid-returning-widgets
220220
- avoid-shrink-wrap-in-lists
221221
- avoid-state-constructors
222222
- avoid-stateless-widget-initialized-fields
223-
- avoid-unnecessary-overrides-in-state # TODO?
223+
- avoid-unnecessary-overrides-in-state
224224
- avoid-unnecessary-setstate
225225
- avoid-unnecessary-stateful-widgets
226226
- avoid-wrapping-in-padding

0 commit comments

Comments
 (0)