diff --git a/lib/dart.yaml b/lib/dart.yaml index f91f920..93795b3 100644 --- a/lib/dart.yaml +++ b/lib/dart.yaml @@ -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 @@ -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