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

lint/cpp-config

clang-tidy and clang-format are configured

Severitywarning
Tiersall
Stackscpp
Scopeeach
Kindexpr
Sourcelibrary v0.0.0-20261011205826-ecb4e9b3ffd4
Selected byfleetlint-recommended@0.1.0

Requirement

A .clang-tidy with WarningsAsErrors and a .clang-format at the root; the build exports compile_commands.json so clang-tidy sees every translation unit.

Why

Without a committed configuration every developer’s editor runs different checks and the build runs none.

Check

file(".clang-tidy") && file(".clang-format")

Fix

Add .clang-tidy and .clang-format (fleetlint fix --apply writes both) and run clang-tidy in the lint target.

Agent instruction: Add .clang-tidy and .clang-format from the templates and a lint target that runs clang-tidy over compile_commands.json; fix findings rather than disabling checks.

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

See: https://fleetlint.org/stacks/#cc


Generated by fleetlint docs from catalog v0.0.0-20261011205826-ecb4e9b3ffd4.