Skip to content

Commit

Permalink
feat: adhere to DCM 1.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tenhobi committed Aug 12, 2024
1 parent 7f44690 commit 5eb43e3
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions packages/netglade_analysis/lib/dcm.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# version 1.19.0 - https://dcm.dev/changelog
# version 1.21.0 - https://dcm.dev/changelog
dart_code_metrics:
rules:
### Common
Expand All @@ -9,6 +9,7 @@ dart_code_metrics:
# - avoid-banned-annotations # * OK, we just don't have global config
# - avoid-banned-file-names # * OK, we just don't have global config
# - avoid-banned-imports # * OK, we just don't have global config
# - avoid-banned-names # * OK, we just don't have global config
# - avoid-banned-types # * OK, we just don't have global config
# - avoid-barrel-files # for now we use them
- avoid-bottom-type-in-patterns
Expand Down Expand Up @@ -120,6 +121,7 @@ dart_code_metrics:
# - avoid-similar-names # way too pedantic
- avoid-slow-collection-methods
- avoid-substring
- avoid-suspicious-super-overrides
- avoid-throw-in-catch-block
- avoid-throw-objects-without-tostring
- avoid-top-level-members-in-tests
Expand Down Expand Up @@ -155,6 +157,7 @@ dart_code_metrics:
- prefer-switch-with-sealed-classes
# - banned-usage # * OK, we just don't have global config
- binary-expression-operand-order
- dispose-class-fields
- double-literal-format
- enum-constants-ordering
- format-comment:
Expand Down Expand Up @@ -203,6 +206,7 @@ dart_code_metrics:
- move-variable-closer-to-its-usage
- move-variable-outside-iteration
- newline-before-case
- newline-before-method
- newline-before-return
- no-boolean-literal-compare:
allow-false: true # allows `variable == false` instead of just `!variable`
Expand Down Expand Up @@ -232,6 +236,7 @@ dart_code_metrics:
# - prefer-addition-subtraction-assignments # dunno
- prefer-any-or-every
- prefer-async-await
- prefer-boolean-prefixes
- prefer-both-inlining-annotations
- prefer-bytes-builder
- prefer-commenting-analyzer-ignores
Expand All @@ -258,7 +263,7 @@ dart_code_metrics:
- prefer-explicit-function-type
- prefer-explicit-parameter-names
# - prefer-explicit-type-arguments # inference is better
# - prefer-extracting-function-callbacks # TODO
- prefer-extracting-function-callbacks # TODO
- prefer-first
# - prefer-getter-over-method # way too pedantic
- prefer-immediate-return
Expand All @@ -273,7 +278,8 @@ dart_code_metrics:
- test/**
- prefer-named-boolean-parameters
# - prefer-named-imports # * OK, we just don't have global config
# - prefer-named-parameters # TODO
- prefer-named-parameters: # TODO
max-number: 2
- prefer-null-aware-spread
- prefer-overriding-parent-equality
- prefer-parentheses-with-if-null
Expand Down Expand Up @@ -304,6 +310,7 @@ dart_code_metrics:
exclude:
- test/**
# - avoid-missing-test-files # * OK, but should be enabled per project
- avoid-misused-set-literals
- avoid-misused-test-matchers
- prefer-wildcard-pattern
# - tag-name # * OK, we just don't have global config
Expand Down Expand Up @@ -406,6 +413,10 @@ dart_code_metrics:
- prefer-use-callback
- prefer-use-prefix

### Firabase Analytics
- incorrect-firebase-event-name
- incorrect-firebase-parameter-name

### GetX - not used
# - always-remove-getx-listener
# - avoid-getx-rx-inside-build
Expand All @@ -420,6 +431,9 @@ dart_code_metrics:
# - prefer-providing-intl-examples
# - provide-correct-intl-args

### Easy Localization
- avoid-missing-tr

### Angular - not used
# - avoid-preserve-whitespace-false
# - component-annotation-arguments-ordering
Expand Down

0 comments on commit 5eb43e3

Please sign in to comment.