Code quality
Shortcuts that hide problems: hollow tests, neutralized CI, placeholder code, broken suppressions. No legal basis. 4 checks, most severe first. All groups: Checks.
QUAL-CI-001
CI checks can fail the run · medium · Repository · No legal basis: A check that never fails reports nothing. Muting tests, linters or scans moves errors into production.
- How: In
.github/workflows/*.ymlwarns forcontinue-on-error: trueandif: falseon a step or job whose lines name a check (check_wordsindata/code-quality.yml, uploads and notifications left out); in scripts, workflows, Makefiles and package.json for|| trueor|| exit 0after a test, lint or audit command,git commit --no-verifyoutside workflows and a test script that does nothing; and for file-wide@ts-nocheck, bareeslint-disableor# type: ignorein the first lines of at least as many files and as large a share asdata/thresholds.ymlsets (languages and left-out paths indata/code-paths.yml); gives info instead of no finding when one of its files is over therepolimit indata/thresholds.ymlor only a Git LFS pointer. - Fix: Let check steps fail when they find errors; suppress known exceptions per rule or line, with a reason.
- Sources: docs.github.com, cwe.mitre.org, arxiv.org · reviewed 2026-11-09 · code
QUAL-SUPPRESS-001
Turned-off rules have a reason · medium · Repository · No legal basis: A turned-off rule stays visible in the report: whoever reads it sees which rule is off, why and until when. Without a reason a green run would prove nothing.
- How: Reads
.github/rechtzeitig.ymlin the repository (src/suppress.ts) and fails for every entry without a known rule id, a category (not-applicable, false-positive, accepted-risk) or a reason, for reasons that are placeholders (data/suppressions.yml) or shorter thanquality/suppressions.min_reason_chars, for an accepted risk withoutexpires, forexpiresthat is no real date, lies in the past or more thanmax_expiry_daysahead (data/thresholds.yml), for unknown fields and duplicates; such an entry turns nothing off, and a valid one turns its rule into suppressed, which still runs and shows its reason. - Fix: Give every entry under suppress a valid rule id (rule), a category (category: not-applicable, false-positive or accepted-risk) and a reason (reason) that says why the rule does not apply here. An accepted risk needs an expiry date (expires: YYYY-MM-DD) within a year. Renew or remove expired entries.
- Sources: docs.oasis-open.org, docs.github.com, docs.github.com · reviewed 2026-11-14 · code
QUAL-TEST-001
Tests can fail · medium · Repository · No legal basis: A green test run only proves something when the tests can fail. Coding agents have been shown to edit tests until they are green.
- How: Reads test files (
testsindata/code-paths.yml) and warns for assertions that compare a constant with itself (expect(true).toBe(true),assert True), an assertion inside a try whose catch does nothing, a forced success (process.exit(0),outcome = "passed"), test cases in a file without any assertion,.onlyand focused tests, and--passWithNoTestsin scripts and runner configs (patterns indata/code-quality.yml); skipped tests warn above the count and share indata/thresholds.yml; gives info instead of no finding when one of its files is over therepolimit indata/thresholds.ymlor only a Git LFS pointer. - Fix: Make each test check a property of the code that would differ when the code is wrong. Turn skipped and focused tests back on or delete them.
- Sources: arxiv.org, metr.org, anthropic.com, jestjs.io · reviewed 2026-11-09 · code
QUAL-STUB-001
No placeholder code in production paths · low · Repository · No legal basis: Generated code often looks finished where it only simulates. Finding placeholders shows which features are not real yet.
- How: Matches code outside tests, docs, examples and stories (languages and left-out paths in
data/code-paths.yml), comments included, againstdata/code-quality.yml:throw new Error("Not implemented"),panic("TODO"),raise NotImplementedError("TODO"),pass # TODO,TODO: implement, elided code (// ... rest of the code),// In a real app ...,// Simulate API call, lorem ipsum and imports of mock data; info with the files that have most finds first; gives info instead of no finding when one of its files is over therepolimit indata/thresholds.ymlor only a Git LFS pointer. - Fix: Implement each find or take the feature out of the interface until it is real. Keep sample data in tests and stories.
- Sources: cwe.mitre.org, cwe.mitre.org, arxiv.org · reviewed 2026-11-09 · code