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

format/configured/rust

A formatter is configured

Implements format/configured for rust.

Severitywarning
Tiers1, 2
Stacksrust
Scopeeach
Kindoutcome
Sourcelibrary v0.1.0
Selected byfleetlint-recommended@v0.1.0

Requirement

cargo fmt runs in a hook, the task runner or CI, or a rustfmt.toml is committed in the crate or a parent directory. 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 cargo fmt --all --check to the lint target and a cargo fmt hook, with a committed rustfmt.toml.

Agent instruction: Add cargo fmt --all --check to the lint target and a cargo-fmt pre-commit hook; reformat in a separate commit.

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


Generated by fleetlint docs from catalog v0.1.0.