Configuration
DCL is designed to be flexible and configurable for your use case. You can turn off every rule and run only with enabled metrics calculation or have both rules and metrics enabled.
To configure DCL, add a dart_code_linter entry to analysis_options.yaml
:
This configuration is used by both CLI and the analysis server.
Basic config example:
You can find a list of recommended rules here.
Basic config with metrics: