format/configured/cpp
A formatter is configured
Implements format/configured for cpp.
| Severity | warning |
| Tiers | 1, 2 |
| Stacks | cpp |
| Scope | each |
| Kind | outcome |
| Source | library v0.3.1 |
| Selected by | fleetlint-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.