Skip to content

test(rules): every page rule emits a check on a clean page #1741 - #2033

Merged
nc9 merged 1 commit into
mainfrom
boat/rule-checks-linkage-1741
Nov 17, 2026
Merged

nc9 merged 1 commit into
mainfrom
boat/rule-checks-linkage-1741

Conversation

@nc9

@nc9 nc9 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Part of #1741 (does not close it).

Adds a contract test that runs every page-scope rule on a clean page and fails on an empty checks list, plus a check that declared rules emit only declared names. Six rules still return an empty list when the page has nothing in their scope; they sit in tests/fixtures/rule-clean-run-empty.json, which only shrinks.

Already shipped (found on main): meta.checks and linkage for leaked-secrets, dev-leakage, hsts, x-frame-options, csp (0e080dd); report --diff fixed vs not compared (#1748); rule-doc check tables (#1747); diff docs in docs/cli/report.mdx.

Still open: declarations for ~309 rules, a clean-fixture run of site-scope rules, and the six baseline rules.

Gates: bun test rule-clean-run-checks + rule-check-declarations: 8 pass; rules typecheck passes. Test-only, no docs or skill change.

@nc9
nc9 marked this pull request as ready for review November 16, 2026 11:57
@nc9
nc9 force-pushed the boat/rule-checks-linkage-1741 branch 2 times, most recently from ed9de1d to 9385484 Compare November 17, 2026 17:21
@nc9
nc9 force-pushed the boat/rule-checks-linkage-1741 branch from 9385484 to fbb8cd9 Compare November 17, 2026 17:44
@nc9
nc9 merged commit 16a9378 into main Nov 17, 2026
16 checks passed
@nc9
nc9 deleted the boat/rule-checks-linkage-1741 branch November 17, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant