fleetlint Policy for a fleet of repositories
v0.11 (latest)
Getting started

format/configured/flutter

A formatter is configured

Implements format/configured for flutter.

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

A finding that names no file points at the task runner’s file, or Makefile when there is none.

Sources


Generated by fleetlint docs from catalog v0.8.0.