Skip to content

Commit

Permalink
ci: add dart_code_metrics rules
Browse files Browse the repository at this point in the history
  • Loading branch information
falko17 committed Dec 7, 2021
1 parent 5e4fa48 commit fae9d79
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,22 @@ include: package:lints/recommended.yaml

# For additional information about configuring this file, see
# https://dart.dev/guides/language/analysis-options

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:
- newline-before-return
- no-boolean-literal-compare
- no-empty-block
- prefer-trailing-comma
- prefer-conditional-expressions
- no-equal-then-else

0 comments on commit fae9d79

Please sign in to comment.