Anti-patterns
Available anti-patterns:
long-method
Long blocks of code are difficult to reuse and understand because they are usually responsible for more than one thing.
long-parameter-list
Long parameter lists are difficult to understand and use.
Configuration
To enable an anti-pattern add its id to the anti-patterns
entry. All anti-pattern have severity which can be overridden with severity
config entry. For example,
analysis_options.yaml
dart_code_metrics:
anti-patterns:
- long-method:
severity: warning
will set severity to warning
.