Skip to content

Commit

Permalink
chore: remove unused dart_code_metrics configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed May 17, 2024
1 parent 2a1ef96 commit ac251c0
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,3 @@ linter:
close_sinks: true
cascade_invocations: true
only_throw_errors: true

dart_code_metrics:
anti-patterns:
- long-method
- long-parameter-list
metrics:
cyclomatic-complexity: 20
maximum-nesting-level: 5
number-of-parameters: 4
source-lines-of-code: 50
metrics-exclude:
- test/**
rules:
- avoid-nested-conditional-expressions:
- acceptable-level: 2
- avoid-throw-in-catch-block # throwWithStackTrace should be used instead
- avoid-unnecessary-type-casts
- no-boolean-literal-compare
- no-empty-block
- no-equal-then-else
- no-magic-number:
- allowed: [3.14, -1, 0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 100]
- prefer-correct-type-name

0 comments on commit ac251c0

Please sign in to comment.