fleetlint Policy for a fleet of repositories
v0.5
Getting started

format/configured/flutter

A formatter is configured

Implements format/configured for flutter.

Severitywarning
Tiers1, 2
Stacksflutter
Scopeeach
Kindoutcome
Sourcelibrary v0.2.0
Selected byfleetlint-recommended@v0.2.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.

See: https://fleetlint.org/baseline/#static-analysis, https://fleetlint.org/stacks/#flutter--dart


Generated by fleetlint docs from catalog v0.2.0.