This repo contains custom linter rules for dart/flutter projects.
- Add the following to your
analysis_options.yaml
file:
analyzer:
plugins:
- custom_lint
- Add the following to your
pubspec.yaml
file:
dev_dependencies:
custom_lint: <current_version>
formigas_flutter_lints:
path: <path to this repo>
The plugin is relatively new. Therefore you need to run the lints with the following command:
flutter pub run custom_lint