1
- # version 1.15 .0 - https://dcm.dev/changelog
1
+ # version 1.16 .0 - https://dcm.dev/changelog
2
2
dart_code_metrics :
3
3
rules :
4
4
# ## Common
@@ -18,6 +18,7 @@ dart_code_metrics:
18
18
- avoid-collapsible-if
19
19
- avoid-collection-methods-with-unrelated-types
20
20
# - avoid-collection-mutating-methods # sometimes it's ok
21
+ - avoid-conditions-with-boolean-literals
21
22
- avoid-contradictory-expressions
22
23
- avoid-declaring-call-method
23
24
- avoid-double-slash-imports
@@ -188,6 +189,7 @@ dart_code_metrics:
188
189
- build-method
189
190
- private-methods
190
191
- missing-test-assertion
192
+ # - missing-use-result-annotation # * OK, we just don't have global config
191
193
- move-records-to-typedefs :
192
194
min-fields : 3
193
195
min-occurrences : 3
@@ -215,7 +217,8 @@ dart_code_metrics:
215
217
- no-equal-switch-case
216
218
- no-equal-switch-expression-cases
217
219
- no-equal-then-else
218
- # - no-magic-number: # way too strict for default values of parameters etc.
220
+ # - no-magic-number # way too strict for default values of parameters etc.
221
+ # - no-magic-string # way too strict for default values of parameters etc.
219
222
- no-object-declaration
220
223
# - parameters-ordering # way too strict
221
224
# - prefer-addition-subtraction-assignments # dunno
@@ -326,6 +329,7 @@ dart_code_metrics:
326
329
- prefer-dedicated-media-query-methods
327
330
- prefer-define-hero-tag
328
331
- prefer-extracting-callbacks
332
+ - prefer-for-loop-in-children
329
333
- prefer-single-widget-per-file :
330
334
ignore-private-widgets : true
331
335
- prefer-sliver-prefix
@@ -374,6 +378,7 @@ dart_code_metrics:
374
378
# ## Flutter Hooks
375
379
- avoid-conditional-hooks
376
380
- avoid-hooks-outside-build
381
+ - avoid-unnecessary-hook-widgets
377
382
- prefer-use-prefix
378
383
379
384
# ## Intl - not used
0 commit comments