@@ -23,8 +23,11 @@ dart_code_metrics:
23
23
- avoid-collection-equality-checks
24
24
- avoid-collection-methods-with-unrelated-types
25
25
# - avoid-collection-mutating-methods # sometimes it's ok
26
+ - avoid-commented-out-code
27
+ - avoid-complex-arithmetic-expressions
26
28
- avoid-complex-loop-conditions
27
29
- avoid-conditions-with-boolean-literals
30
+ # - avoid-continue # we prefer condition guards
28
31
- avoid-contradictory-expressions
29
32
- avoid-declaring-call-method
30
33
- avoid-double-slash-imports
@@ -51,13 +54,15 @@ dart_code_metrics:
51
54
# - avoid-explicit-type-declaration # public API
52
55
- avoid-extensions-on-records
53
56
- avoid-function-type-in-records
57
+ - avoid-future-ignore
54
58
- avoid-future-tostring
55
59
- avoid-generics-shadowing
56
60
- avoid-getter-prefix :
57
61
prefix : " ^get"
58
62
- avoid-global-state
59
63
# - avoid-high-cyclomatic-complexity # For now we catch this on CR.
60
64
- avoid-identical-exception-handling-blocks
65
+ - avoid-if-with-many-branches
61
66
- avoid-ignoring-return-values :
62
67
exclude :
63
68
- test/**
@@ -154,6 +159,7 @@ dart_code_metrics:
154
159
- avoid-unnecessary-collections
155
160
- avoid-unnecessary-conditionals
156
161
- avoid-unnecessary-constructor
162
+ - avoid-unnecessary-continue
157
163
- avoid-unnecessary-enum-arguments
158
164
- avoid-unnecessary-enum-prefix
159
165
- avoid-unnecessary-extends
@@ -248,6 +254,7 @@ dart_code_metrics:
248
254
- no-boolean-literal-compare :
249
255
allow-false : true # allows `variable == false` instead of just `!variable`
250
256
- no-empty-block
257
+ # - no-empty-string # way too pedantic
251
258
# - no-equal-arguments: # hard to set up so it makes sense
252
259
# ignored-parameters:
253
260
# - height
@@ -269,6 +276,7 @@ dart_code_metrics:
269
276
# - no-magic-string # way too strict for default values of parameters etc.
270
277
- no-object-declaration
271
278
# - parameters-ordering # way too strict
279
+ - pattern-fields-ordering
272
280
- prefer-abstract-final-static-class
273
281
- prefer-add-all
274
282
# - prefer-addition-subtraction-assignments # dunno
@@ -303,7 +311,9 @@ dart_code_metrics:
303
311
- handle # for handlers that return bool
304
312
- prefer-both-inlining-annotations
305
313
- prefer-bytes-builder
314
+ # - prefer-class-destructuring # way too pedantic
306
315
- prefer-commenting-analyzer-ignores
316
+ - prefer-commenting-future-delayed
307
317
- prefer-conditional-expressions
308
318
- prefer-contains
309
319
- prefer-correct-callback-field-name
@@ -367,10 +377,13 @@ dart_code_metrics:
367
377
ignore-names :
368
378
- (.*)Provider
369
379
- use(.*)
380
+ # - prefer-static-method # way too pedantic
381
+ - prefer-switch-expression
370
382
- prefer-switch-with-enums :
371
383
ignore-contains : true
372
384
- prefer-test-matchers
373
385
- prefer-trailing-comma
386
+ - use-existing-destructuring
374
387
# - prefer-type-over-var # we prefer type inference
375
388
- prefer-typedefs-for-callbacks
376
389
- prefer-unique-test-names
@@ -419,6 +432,7 @@ dart_code_metrics:
419
432
- consistent-update-render-object
420
433
- dispose-fields
421
434
- prefer-action-button-tooltip
435
+ - prefer-align-over-container
422
436
- prefer-center-over-align
423
437
- prefer-const-border-radius
424
438
- prefer-container :
@@ -433,10 +447,13 @@ dart_code_metrics:
433
447
ignore-private-widgets : true
434
448
- prefer-sized-box-square
435
449
- prefer-sliver-prefix
450
+ - prefer-spacing
436
451
- prefer-text-rich
452
+ - prefer-transform-over-container
437
453
- prefer-using-list-view
438
454
- prefer-widget-private-members
439
455
- proper-super-calls
456
+ - use-closest-build-context
440
457
- use-setstate-synchronously
441
458
442
459
# ## Provider
0 commit comments