Skip to main content

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,

dart_code_linter:
anti-patterns:
- long-method:
severity: warning

will set severity to warning.