Skip to content

Commit

Permalink
Merge branch 'main' into SNP-1407-update-preset
Browse files Browse the repository at this point in the history
  • Loading branch information
papertigify committed May 28, 2024
2 parents bcc6c3c + 98d8e4d commit b1d8067
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions lib/dart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
dart_code_metrics:
rules:
# https://dcm.dev/docs/rules/common
- arguments-ordering:
child-last: true
last:
- body
- child
- children
- parameters-ordering:
required: "first"
default: "last"
super: "last"

- avoid-accessing-collections-by-constant-index
- avoid-accessing-other-classes-private-members
- avoid-async-call-in-sync-function
Expand Down Expand Up @@ -111,26 +118,33 @@ dart_code_metrics:
order:
- public-fields
- private-fields
- private-late-final-fields
- public-getters
- private-getters
- public-setters
- private-setters
- constructors
- init-widget-model-method
- init-method
- did-change-dependencies-method
- did-update-widget-method
- on-error-handle-method
- close-method
- dispose-method
- public-methods
- private-methods
widgets-order:
- constructor
- named-constructor
- const-fields
- final-fields
- constructor
- named-constructor
- factory-constructors
- init-state-method
- did-change-dependencies-method
- did-update-widget-method
- dispose-method
- private-methods
- overriden-public-methods
- private-methods
- build-method
- move-records-to-typedefs:
min-fields: 3
Expand Down

0 comments on commit b1d8067

Please sign in to comment.