Custom lint rules for Dart and Flutter.
To use choco_lints
in your project, follow these steps:
- Add
choco_lints
as a dev dependency in yourpubspec.yaml
file:
dev_dependencies:
choco_lints:
git:
url: https://github.com/charlescyt/choco_lints.git
ref: 1.2.0 # specify version here
- Include
choco_lints/app.yaml
orchoco_lints/package.yaml
in youranalysis_options.yaml
file:
include: package:choco_lints/app.yaml
or
include: package:choco_lints/package.yaml