Skip to content

Instantly share code, notes, and snippets.

@rutvik110
Created December 12, 2021 08:02
Show Gist options
  • Save rutvik110/d2b34719e1dfaca8ecf544f654bbae9d to your computer and use it in GitHub Desktop.
Save rutvik110/d2b34719e1dfaca8ecf544f654bbae9d to your computer and use it in GitHub Desktop.
Analysis Options file for flutter projects which uses VGV analysis and dart-code-metrics.
include: package:very_good_analysis/analysis_options.yaml
linter:
rules:
analyzer:
exclude:
- test/
plugins:
- dart_code_metrics
# errors:
dart_code_metrics:
metrics:
cyclomatic-complexity: 20
number-of-arguments: 4
maximum-nesting-level: 5
metrics-exclude:
- test/**
rules:
- newline-before-return
- no-boolean-literal-compare
- prefer-trailing-comma
- prefer-conditional-expressions
- no-equal-then-else
anti-patterns:
- long-method
- long-parameter-list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment