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

format/configured/flutter

A formatter is configured

Implements format/configured for flutter.

Severitywarning
Tiers1, 2
Stacksflutter
Scopeeach
Kindoutcome
Sourcelibrary v0.5.0
Selected byfleetlint-recommended@v0.5.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 of this rule points at the file taskrunner.file != "" ? taskrunner.file : "Makefile" yields.

Sources


Generated by fleetlint docs from catalog v0.5.0.