Repository navigation
fix(rules): legal pages skipped by no-contextual-inbound, conventional labels exempt in link-text #981 #839 - #1006
Merged
Merged
Conversation
|
Reviewed the diff for
Test coverage looks good: there is a new 839 test file, the fixtures moved from |
Signed-off-by: Nik Cubrilovic <[email protected]>
…abels #839 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
fix/981-839-231-rule-noise
branch
from
October 22, 2026 02:29
42a3ad5 to
5729429
Compare
|
Review of #1006 (conventional link labels for `link-text`, legal-page skip for `no-contextual-inbound`). I read the source diff. I did not run the tests.
Tests cover both rules, including the golden test. The change is limited to removing findings, so false-positive risk is low. No correctness, security or performance blockers found. |
This was referenced Oct 22, 2026
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.
Closes #981
Closes #839
Two small commits, different rules.
#981
links/no-contextual-inbound: skips legal pages (privacy, terms, imprint,/legal,/legal-notice,/aviso-legal, ... in the languages the EEAT privacy and terms slug sets cover) matched on the last path segment under any prefix, so/en/legal,/impressum,/datenschutz,/agbare not reported. A non-legal footer-only page and a slug that merely contains a legal word (/legalese-guide) still are. The existing fixtures used/legalas the footer-only page; they now use/pricing(rule test and the audit-engine site-query golden).#839
a11y/link-text: newshared/conventional-link-labels.ts(whole-text match after NFKC, case folding, edge punctuation strip; union across en, es, fr, de, pt, it, nl, ja, zh, ko, ru). The six account phrases leave the generic list (54 to 48 phrases) and the conventional set is checked first.click here,read more,learn more,here,more,link,this,go,continuestill reported.links/anchor-textanda11y/identical-links-same-purposechecked: neither lists these labels as generic, no change needed (noted in the docs page).#231 not changed here: the wording and rating-scope fixes already landed in #611 (
security/sriandcontent/meta-in-bodyuse the(s)form, rating-scope has no product name). The only unticked criterion is re-running the production identity projection, which is not code. Left open.Tests: no-contextual-inbound (rule + audit-engine golden) 42 pass,
conventional-link-labels-839.test.ts62 pass (a test per language), naming-rules-hidden-993 pass.tsgo --noEmitin packages/rules clean.tangly check --strictpasses.Docs updated for both rules, CHANGELOG bullet per fix. Agent skill: no change needed.