refactor: Remove deprecated dart code metrics
This commit is contained in:
parent
0bd9d4d8ec
commit
e6e669efef
|
|
@ -25,35 +25,3 @@ analyzer:
|
|||
# needed until crypto packages upgrade
|
||||
- lib/src/database/database.g.dart
|
||||
plugins:
|
||||
# Show code metrics in IDE
|
||||
# - dart_code_metrics
|
||||
|
||||
dart_code_metrics:
|
||||
metrics:
|
||||
cyclomatic-complexity: 20
|
||||
number-of-arguments: 4
|
||||
maximum-nesting-level: 5
|
||||
source-lines-of-code: 50
|
||||
# This is still unstable, so handle with care
|
||||
maintainability-index: 40
|
||||
metrics-exclude:
|
||||
- test/**
|
||||
rules:
|
||||
#- newline-before-return
|
||||
- no-boolean-literal-compare
|
||||
- no-empty-block
|
||||
#- prefer-trailing-comma
|
||||
- prefer-conditional-expressions
|
||||
- no-equal-arguments
|
||||
- no-equal-then-else
|
||||
- no-magic-number:
|
||||
severity: style # too noisy otherwise atm
|
||||
- avoid-late-keyword:
|
||||
severity: style # too noisy otherwise atm
|
||||
- avoid-non-null-assertion:
|
||||
severity: style # too noisy otherwise atm
|
||||
- avoid-unused-parameters
|
||||
- binary-expression-operand-order
|
||||
anti-patterns:
|
||||
- long-method
|
||||
- long-parameter-list
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@ dependencies:
|
|||
|
||||
dev_dependencies:
|
||||
coverage: ">=0.15.0 <2.0.0"
|
||||
dart_code_metrics: ^4.10.1
|
||||
file: ^6.1.1
|
||||
import_sorter: ^4.6.0
|
||||
lints: ^2.0.0
|
||||
|
|
|
|||
Loading…
Reference in New Issue