lint/configured/flutter
A linter is configured
Implements lint/configured for flutter.
| Severity | warning |
| Tiers | 1, 2 |
| Stacks | flutter |
| Scope | each |
| Kind | outcome |
| Source | library v0.6.0 |
| Selected by | fleetlint-recommended@v0.6.0 |
Requirement
analysis_options.yaml (in the package or a parent directory) includes a lint set such as flutter_lints, lints or very_good_analysis, or enables linter rules itself.
Why
The Dart analyzer only reports what a lint set switches on; without one, flutter analyze checks little beyond compile errors.
Fix
Add analysis_options.yaml including package:flutter_lints (fleetlint fix --apply writes one with the strict modes on).
Agent instruction: Add analysis_options.yaml from the template (flutter_lints plus the strict modes and slop guards); run flutter analyze --fatal-infos and fix what it reports.
fleetlint fix can apply this rule’s fix automatically (1 action(s)).
A finding of this rule points at analysis_options.yaml.
Sources
- https://csrc.nist.gov/pubs/sp/800/218/final (standard, PW.7.2: Perform the code review and/or code analysis based on the organization’s secure coding standards)
- https://fleetlint.org/baseline/#static-analysis (convention)
- https://dart.dev/tools/analysis (spec)
- https://pub.dev/packages/flutter_lints (spec)
- https://fleetlint.org/stacks/#flutter–dart
Generated by fleetlint docs from catalog v0.6.0.