lint fails on a clean tree: 45 naming findings contradict the PascalCase rule in AGENTS.md #36
Labels
No labels
bug
claude:blocked
claude:done
claude:failed
claude:in-progress
claude:ready
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Catcrafts/Crafter.Build#36
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
./bin/crafter-build lintexits 1 atc6b0bba(run with unrelated local changes in four files; none of the findings is in a changed line):All 45 come from the
namingrule and readvariable 'X' should be camelCase.format --checkis clean.The disagreement
The flagged names are namespace-scope statics and constants written in PascalCase, which is what
AGENTS.md:99asks for: "PascalCasefor types, functions, statics and constants;camelCasefor variables". Examples:tests/VariantId/main.cpp:9and 16 other testsstd::int32_t Failures = 0;in an unnamed namespaceimplementations/Crafter.Build-Shader.cpp:75constexpr EShMessages Messages = …interfaces/Crafter.Build-Clang.cppm:168inline constexpr std::size_t LintNoParent = …implementations/Crafter.Build-Progress.cppStateMutex,StartTime,LineDirty,IsTty, … (8 findings)So the code follows the documented convention and the rule (from Crafter.LintRules, which is fetched unpinned) flags it.
Why it matters
AGENTS.mdsays a change is not done untilformat,lintandtestall exit 0. With lint failing on a clean tree that gate cannot be met, and a new finding hides among the 45.Suggested fix
Pick one side:
namingrule that namespace-scope variables,staticvariables andconstexprconstants are PascalCase, orAGENTS.md.Then re-enable the lint step in CI so it stays at zero.