Repository navigation
test(rules): every page rule emits a check on a clean page #1741 - #2033
Merged
Merged
Conversation
nc9
marked this pull request as ready for review
November 16, 2026 11:57
nc9
force-pushed
the
boat/rule-checks-linkage-1741
branch
2 times, most recently
from
November 17, 2026 17:21
ed9de1d to
9385484
Compare
…rinking baseline #1741 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
boat/rule-checks-linkage-1741
branch
from
November 17, 2026 17:44
9385484 to
fbb8cd9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.