refactor(lint): check this tree with the lite house rules
Crafter.LintRules now has AddLiteRules: the house rules without the ones that only decide layout, whitespace and naming. This tree switches to it. The full set's naming rule now wants camelCase statics and constants, which this tree spells PascalCase throughout, so `lint` with it reported 49 findings on code that follows the documented convention; with the lite set `lint` and `format --check` are clean. AGENTS.md described the 17 rules as the enforced style and told contributors to let `format` restyle their code. It now says which 8 rules `lint` enforces, that `format` only rewrites string concatenation and builtin integer types, and lists layout and naming as conventions kept by hand. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
973c2708fe
commit
8fadbdae37
2 changed files with 15 additions and 8 deletions
12
project.cpp
12
project.cpp
|
|
@ -288,10 +288,14 @@ extern "C" Configuration CrafterBuildProject(std::span<const std::string_view> a
|
|||
cfg.AddTest("Lint").Dependencies({ CrafterBuildLib.get() });
|
||||
}
|
||||
|
||||
// Dogfood: the house-style rules, imported from their own repo through
|
||||
// the pragma above. Report rules gate `crafter-build lint`; transform
|
||||
// rules also auto-fix under `crafter-build format`.
|
||||
LintRules::AddRules(cfg);
|
||||
// Dogfood: the lite house rules, imported from their own repo through
|
||||
// the pragma above. Lite is the house rules without the ones that only
|
||||
// decide layout, whitespace and naming, which this tree keeps by hand:
|
||||
// the full set's naming rule, for one, wants camelCase where this tree
|
||||
// spells its statics and constants PascalCase. Report rules gate
|
||||
// `crafter-build lint`; the two transforms also auto-fix under
|
||||
// `crafter-build format`.
|
||||
LintRules::AddLiteRules(cfg);
|
||||
|
||||
// See the top of this file.
|
||||
cfg.scripts.push_back({"flatpak", BuildFlatpak});
|
||||
|
|
|
|||
Loading…
Reference in a new issue