Skip to content

Commit

Permalink
ci: set rules for dart_code_metrics plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
falko17 committed Dec 7, 2021
1 parent cb0c83e commit 1ae925a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,14 @@ dart_code_metrics:
metrics-exclude:
- test/**
rules:
- newline-before-return
- avoid-nested-conditional-expressions:
- acceptable-level: 2
- avoid-throw-in-catch-block # throwWithStackTrace should be used instead
- avoid-unnecessary-type-casts
- avoid-unused-parameters # should use throwaway syntax in such cases
- no-boolean-literal-compare
- no-empty-block
- prefer-trailing-comma
- prefer-conditional-expressions
- 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 1ae925a

Please sign in to comment.