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

format/configured/cpp

A formatter is configured

Implements format/configured for cpp.

Severitywarning
Tiers1, 2
Stackscpp
Scopeeach
Kindoutcome
Sourcelibrary v0.3.1
Selected byfleetlint-recommended@v0.3.1

Requirement

A .clang-format is committed in the project or a parent directory, or clang-format runs in a hook, the task runner or CI. 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 .clang-format (fleetlint fix --apply writes it) and the clang-format hook.

Agent instruction: Add .clang-format from the template and the clang-format pre-commit hook; reformat in a separate commit.

fleetlint fix can apply this rule’s fix automatically (1 action(s)).

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


Generated by fleetlint docs from catalog v0.3.1.