@@ -266,8 +266,11 @@ dart_code_metrics:
266
266
- avoid-collection-equality-checks
267
267
- avoid-collection-methods-with-unrelated-types
268
268
# - avoid-collection-mutating-methods
269
+ - avoid-commented-out-code
270
+ # - avoid-complex-arithmetic-expressions
269
271
- avoid-complex-loop-conditions
270
272
- avoid-conditions-with-boolean-literals
273
+ - avoid-continue
271
274
- avoid-contradictory-expressions
272
275
# - avoid-declaring-call-method
273
276
- avoid-double-slash-imports
@@ -291,13 +294,15 @@ dart_code_metrics:
291
294
# - avoid-explicit-type-declaration
292
295
# - avoid-extensions-on-records
293
296
- avoid-function-type-in-records
297
+ - avoid-future-ignore
294
298
- avoid-future-tostring
295
299
- avoid-generics-shadowing
296
300
- avoid-getter-prefix :
297
301
prefix : ' ^get'
298
302
- avoid-global-state
299
303
# - avoid-high-cyclomatic-complexity
300
304
# - avoid-identical-exception-handling-blocks
305
+ # - avoid-if-with-many-branches
301
306
# - avoid-ignoring-return-values
302
307
- avoid-implicitly-nullable-extension-types
303
308
# - avoid-importing-entrypoint-exports
@@ -379,6 +384,7 @@ dart_code_metrics:
379
384
- avoid-unnecessary-collections
380
385
- avoid-unnecessary-conditionals
381
386
- avoid-unnecessary-constructor
387
+ # - avoid-unnecessary-continue
382
388
- avoid-unnecessary-enum-arguments
383
389
- avoid-unnecessary-enum-prefix
384
390
- avoid-unnecessary-extends
@@ -434,6 +440,7 @@ dart_code_metrics:
434
440
- newline-before-return
435
441
- no-boolean-literal-compare
436
442
# - no-empty-block
443
+ # - no-empty-string
437
444
# - no-equal-arguments
438
445
- no-equal-conditions
439
446
- no-equal-nested-conditions
@@ -444,6 +451,7 @@ dart_code_metrics:
444
451
# - no-magic-string
445
452
- no-object-declaration
446
453
# - parameters-ordering
454
+ # - pattern-fields-ordering
447
455
- prefer-abstract-final-static-class
448
456
- prefer-add-all
449
457
# - prefer-addition-subtraction-assignments
@@ -454,7 +462,9 @@ dart_code_metrics:
454
462
prefixes : [ is, are, was, were, has, have, had, can, should, will, do, does, did, allow, show, use, hide, only, enable ]
455
463
- prefer-both-inlining-annotations
456
464
# - prefer-bytes-builder
465
+ # - prefer-class-destructuring
457
466
- prefer-commenting-analyzer-ignores
467
+ # - prefer-commenting-future-delayed
458
468
# - prefer-conditional-expressions
459
469
- prefer-contains
460
470
# - prefer-correct-callback-field-name
@@ -505,6 +515,8 @@ dart_code_metrics:
505
515
# - prefer-single-declaration-per-file
506
516
- prefer-specific-cases-first
507
517
# - prefer-static-class
518
+ # - prefer-static-method
519
+ - prefer-switch-expression
508
520
- prefer-switch-with-enums
509
521
- prefer-switch-with-sealed-classes
510
522
# - prefer-test-matchers
@@ -519,6 +531,7 @@ dart_code_metrics:
519
531
# - record-fields-ordering
520
532
# - tag-name
521
533
# - unnecessary-trailing-comma
534
+ - use-existing-destructuring
522
535
- use-existing-variable
523
536
524
537
# Flutter
@@ -563,11 +576,14 @@ dart_code_metrics:
563
576
# - prefer-single-widget-per-file
564
577
- prefer-sized-box-square
565
578
- prefer-sliver-prefix
579
+ # - prefer-spacing
566
580
- prefer-text-rich
581
+ - prefer-transform-over-container
567
582
# - prefer-using-list-view
568
583
- prefer-widget-private-members :
569
584
ignore-static : true
570
585
- proper-super-calls
586
+ - use-closest-build-context
571
587
- use-setstate-synchronously
572
588
573
589
# Provider
@@ -598,8 +614,8 @@ dart_code_metrics:
598
614
- prefer-bloc-extensions
599
615
- prefer-bloc-state-suffix
600
616
- prefer-correct-bloc-provider
601
- # - prefer-immutable-bloc-events
602
- # - prefer-immutable-bloc-state
617
+ - prefer-immutable-bloc-events
618
+ - prefer-immutable-bloc-state
603
619
- prefer-multi-bloc-provider
604
620
- prefer-sealed-bloc-events
605
621
- prefer-sealed-bloc-state
0 commit comments