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.4.0 |
| Selected by | fleetlint-recommended@v0.4.0 |
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.
Sources
- https://fleetlint.org/baseline/#static-analysis (convention)
- https://dart.dev/effective-dart/style (guidance, DO format your code using dart format)
- https://dart.dev/tools/dart-format (spec)
- https://fleetlint.org/stacks/#flutter–dart
Generated by fleetlint docs from catalog v0.4.0.