flint
2.17.0, released 7 days ago by duobase.io
Stricter analyzer lint rules used in Forus Labs' Dart & Flutter projects.
WASM-ready
What it does
Flint provides an opinionated set of strict static analysis lints for Dart and Flutter projects. It is configured by adding it as a dev dependency and including the provided Dart or Flutter ruleset in an analysis_options.yaml file.
AI-written summary of version 2.16.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want a strict set of analyzer lints beyond standard packages like flutter_lints.
- You want separate rulesets tailored for pure Dart or Flutter projects.
Skip it when
- You prefer looser or standard default lint configurations.
- Your project cannot meet the strict constraints and rules enforced by Flint.
Strengths
- Stricter ruleset compared to standard lint packages.
- Provides both Dart and Flutter specific rulesets.
Weaknesses
- May produce a large number of warnings or errors when introduced into legacy codebases.
- Internal ruleset focus means rules change according to Forus Labs' preferences.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Add flint as a dev dependency and include either package:flint/analysis_options.dart.yaml or package:flint/analysis_options.flutter.yaml in your analysis_options.yaml file.
dev_dependencies:
flint: ^2.8.0
# In analysis_options.yaml:
include: package:flint/analysis_options.flutter.yamlAlternatives
Packages that do the same job and could replace flint.