format/configured/flutter
A formatter is configured
Implements format/configured for flutter.
| Severity | warning |
| Tiers | 1, 2 |
| Stacks | flutter |
| Scope | each |
| Kind | outcome |
| Source | library v0.3.1 |
| Selected by | fleetlint-recommended@v0.3.1 |
Requirement
dart format runs in a hook, the task runner or CI (with --set-exit-if-changed where it checks). Another formatter is added with accept:.
Why
Without one formatter every editor reformats differently and diffs fill with whitespace churn that hides the real change.
Fix
Add dart format --set-exit-if-changed . to the lint target and a dart format hook.
Agent instruction: Add dart format --set-exit-if-changed . to the lint target and the dart-format pre-commit hook; reformat in a separate commit.
See: https://fleetlint.org/baseline/#static-analysis, https://fleetlint.org/stacks/#flutter--dart
Generated by fleetlint docs from catalog v0.3.1.