Skip to content

Commit

Permalink
feat!: Upgrade to DCM 1.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
witwash committed Sep 11, 2024
1 parent fe6261d commit 132b48e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dcm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: CQLabs/setup-dcm@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
version: "1.21.2"
version: "1.22.0"

- uses: ./.github/actions/setup

Expand Down
30 changes: 28 additions & 2 deletions mews_pedantic/lib/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ dart_code_metrics:
- avoid-double-slash-imports
- avoid-duplicate-cascades
- avoid-duplicate-collection-elements
- avoid-duplicate-constant-values
- avoid-duplicate-exports
- avoid-duplicate-initializers
- avoid-duplicate-map-keys
Expand All @@ -287,9 +288,12 @@ dart_code_metrics:
- avoid-function-type-in-records
- avoid-future-tostring
- avoid-generics-shadowing
- avoid-getter-prefix:
prefix: '^get'
- avoid-global-state
# - avoid-identical-exception-handling-blocks
# - avoid-ignoring-return-values
- avoid-implicitly-nullable-extension-types
# - avoid-importing-entrypoint-exports
# - avoid-inferrable-type-arguments
- avoid-inverted-boolean-checks
Expand Down Expand Up @@ -321,6 +325,7 @@ dart_code_metrics:
# - avoid-nested-switch-expressions
- avoid-nested-switches
# - avoid-non-ascii-symbols
- avoid-non-final-exception-class-fields
- avoid-non-null-assertion
- avoid-not-encodable-in-to-json
- avoid-nullable-interpolation
Expand Down Expand Up @@ -352,6 +357,7 @@ dart_code_metrics:
# - avoid-throw-in-catch-block
# - avoid-throw-objects-without-tostring
# - avoid-top-level-members-in-tests
- avoid-type-casts
- avoid-unassigned-late-fields
- avoid-unassigned-stream-subscriptions
- avoid-uncaught-future-errors
Expand All @@ -360,12 +366,17 @@ dart_code_metrics:
- avoid-unnecessary-call
- avoid-unnecessary-collections
- avoid-unnecessary-conditionals
- avoid-unnecessary-constructor
- avoid-unnecessary-enum-arguments
- avoid-unnecessary-enum-prefix
- avoid-unnecessary-extends
- avoid-unnecessary-futures
- avoid-unnecessary-getter
- avoid-unnecessary-if
- avoid-unnecessary-local-late
- avoid-unnecessary-negations
- avoid-unnecessary-nullable-return-type
- avoid-unnecessary-overrides
- avoid-unnecessary-reassignment
- avoid-unnecessary-return
- avoid-unnecessary-super
Expand All @@ -376,6 +387,7 @@ dart_code_metrics:
# - avoid-unsafe-collection-methods
- avoid-unsafe-reduce
- avoid-unused-after-null-check
- avoid-unused-assignment
- avoid-unused-generics
# - avoid-unused-instances
- avoid-unused-parameters
Expand Down Expand Up @@ -424,11 +436,12 @@ dart_code_metrics:
- prefer-any-or-every
# - prefer-async-await
- prefer-boolean-prefixes:
prefixes: [is, are, was, were, has, have, had, can, should, will, do, does, did, allow, show, use, hide, only, enable]
prefixes: [ is, are, was, were, has, have, had, can, should, will, do, does, did, allow, show, use, hide, only, enable ]
- prefer-both-inlining-annotations
# - prefer-bytes-builder
- prefer-commenting-analyzer-ignores
# - prefer-conditional-expressions
- prefer-contains
# - prefer-correct-callback-field-name
- prefer-correct-error-name
- prefer-correct-for-loop-increment
Expand All @@ -440,7 +453,7 @@ dart_code_metrics:
- prefer-correct-stream-return-type
# - prefer-correct-switch-length
- prefer-correct-test-file-name:
exclude: ["lib/**", "bin/**"]
exclude: [ "lib/**", "bin/**" ]
# - prefer-correct-throws
# - prefer-correct-type-name
- prefer-declaring-const-constructor:
Expand Down Expand Up @@ -530,6 +543,8 @@ dart_code_metrics:
# - prefer-using-list-view
- prefer-widget-private-members:
ignore-static: true
# - avoid-assigning-to-static-field
- avoid-assignments-as-conditions
- proper-super-calls
- use-setstate-synchronously

Expand All @@ -550,6 +565,17 @@ dart_code_metrics:
- prefer-correct-bloc-provider
- prefer-multi-bloc-provider

pubspec-rules:
# - avoid-any-version
# - avoid-dependency-overrides
# - banned-dependencies
# - prefer-caret-version-syntax
# - prefer-correct-package-name
# - prefer-correct-screenshots
# - prefer-pinned-version-syntax
# - prefer-publish-to-none
# - prefer-semver-version

metrics-exclude:
- lib/**
- test/**

0 comments on commit 132b48e

Please sign in to comment.