Repository navigation
Description
Follow-up from #1741, whose acceptance criteria shipped (#2179 and 0e080dd). What is left is the baselines, which only shrink:
packages/rules/tests/fixtures/rule-checks-undeclared.json: 311 rules without ameta.checksdeclaration (rule-check-declarations.test.tskeeps the list exact and sorted)packages/rules/tests/fixtures/rule-clean-run-empty.json: 6 page rules allowed to emit no check on a clean fixturepackages/rules/tests/fixtures/rule-clean-run-site-empty.json: 20 site rules allowed to emit no check on a clean fixture
Declaring 311 rules in one change is far over the reviewable size, so this is done in tranches: about 40 rules per PR, one category at a time where possible, each PR well under 1,500 changed lines. Each tranche declares the check names a rule really emits, links its problem checks to its clean check, and removes those rules from the baseline in the same PR.
Acceptance Criteria
-
rule-checks-undeclared.jsonis empty: every rule declaresmeta.checks -
rule-clean-run-empty.jsonandrule-clean-run-site-empty.jsonare empty, or each remaining entry has a one-line reason next to it - Every tranche PR shrinks the baselines it touches, adds no new rule to any baseline, and stays under about 40 rules and 1,500 changed lines
- The undeclared-name guard also covers runs that report problems (problem-path fixtures), not only clean runs of declared rules
- No check name changes without a
changelog.d/entry -
bun scripts/rule-checks.ts --checkpasses indocs/after every tranche, and the generated rule docs list the new check names
nik
Split (2026-11-25)
Shipped: Three declaration tranches of #2218 on main: 91eef28 (39 rules, #2219), 16b6165 (38 rules: ax, core, url, #2268), 5d46d19 (42 rules: crawl, security, #2291). The undeclared baseline went from 311 to 192 (a11y 61, content 27, eeat 15, images 16, links 17, perf 31, schema 25). Groundwork from #1741 (0e080dd: meta.checks, the clean-run tests, and the 6-page and 20-site clean-run baselines) and the generated rule docs blocks (docs/scripts/rule-checks.ts) are on main. Not done: the clean-run baselines record no reasons; the site clean-run test does not await async rules or apply option defaults (15 of its 20 site entries do emit a skipped/info/pass check when awaited, and 3 links rules throw on missing option defaults); expectDeclaredChecks runs only on the clean fixtures and in 9 rule test files, so problem-path output is mostly unguarded.
Remaining work moved to:
- rules: site clean-run test awaits async rules and applies option defaults #2342 rules: site clean-run test awaits async rules and applies option defaults
- rules: undeclared-check-name guard covers problem-path runs #2343 rules: undeclared-check-name guard covers problem-path runs
- rules: declare checks for a11y rules, part 1 (accesskeys to form-labels, 31 rules) #2344 rules: declare checks for a11y rules, part 1 (accesskeys to form-labels, 31 rules)
- rules: declare checks for a11y rules, part 2 (frame-title to zoom-disabled, 30 rules) #2345 rules: declare checks for a11y rules, part 2 (frame-title to zoom-disabled, 30 rules)
- rules: declare checks for content rules (27 rules) #2346 rules: declare checks for content rules (27 rules)
- rules: declare checks for images and links rules (33 rules) #2347 rules: declare checks for images and links rules (33 rules)
- rules: declare checks for eeat and schema rules (40 rules) #2348 rules: declare checks for eeat and schema rules (40 rules)
- rules: declare checks for perf rules (31 rules), emptying the undeclared baseline #2349 rules: declare checks for perf rules (31 rules), emptying the undeclared baseline
- rules: empty the clean-run baselines or give each remaining entry a reason #2350 rules: empty the clean-run baselines or give each remaining entry a reason
Activity
feat(rules): declare checks for 39 rules (adblock, ai, analytics, i18…
feat(rules): declare checks for 39 rules (adblock, ai, analytics, i18…
style(rules): oxfmt the tranche's check declarations for the new rule…
feat(rules): declare checks for 39 rules, first tranche of #2218 (#2219)
feat(rules): declare checks for 38 rules (ax, core, url), second tran…
feat(rules): declare checks for 42 rules (crawl, security), third tra…
feat(rules): declare checks for 33 rules (images, links), seventh tra…
feat(rules): declare checks for 27 content rules, sixth tranche of #2218
feat(rules): declare checks for 30 a11y rules (frame-title to zoom-di…
feat(rules): declare checks for 31 a11y rules (accesskeys to form-lab…
feat(rules): declare checks for 40 rules (eeat, schema), eighth tranc…
feat(rules): declare checks for 40 rules (eeat, schema), eighth tranc…
feat(rules): declare checks for 27 content rules, sixth tranche of #2218