Repository navigation
fix(rules): stop reporting robots.txt allow plus noindex as a conflict - #549
Merged
Merged
Conversation
Allow plus noindex is the supported way to deindex a page. Only pages blocked by robots.txt without noindex are reported (info), now with their URLs in pages on both the streaming and in-memory paths. Disallow plus noindex stays with crawl/robots-meta-conflict. Closes #487 Signed-off-by: Nik Cubrilovic <[email protected]>
|
Reviewed the diff. No blocking problems. The change drops the allow-plus-noindex warning, keeps the blocked-without-noindex info finding, and now fills
|
Allow plus noindex no longer warns, which lifts the canonical fixture's overall score from 49 to 50. v1 and v2 stay identical. Signed-off-by: Nik Cubrilovic <[email protected]>
…onflicts-allow-noindex Signed-off-by: Nik Cubrilovic <[email protected]>
Contributor
Author
|
Re the (low) severity/weight finding: skipped deliberately. Changing the rule's declared severity or weight is out of scope for this fix and would move scoring again; it can be revisited separately. |
|
Reviewed the diff. I found nothing that should block merge.
Findings, both minor:
I did not run the tests myself. |
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 #487
What changed
crawl/indexability-conflictsno longer reportsrobots-allow-but-noindex. robots.txt Allow plus meta orX-Robots-Tagnoindex is the supported way to deindex a page.robots-block-without-noindex(info). It now setspageswith the affected URLs, on both the streaming and in-memory paths.crawl/robots-meta-conflict, so nothing is double-reported.Tests
packages/rules/tests/indexability-conflicts.test.ts: the reporter's repro passes,X-Robots-Tag: noindexplus Allow passes, Disallow plus noindex gives no finding here, and a robots-disallowed indexable page gives an info finding withpagespopulated.packages/audit-engine/tests/page-features-noindex-golden.test.tsupdated deliberately for the removed warning (streamed equals legacy), plus a dual-path case for the info check withpages.packages/audit-engine/tests/streaming-rules-canonical-golden.test.ts: overall score pin moved 49 to 50 deliberately, since the removed warning lifts the canonical fixture's score. v1 and v2 stay identical.make validateindocs/passes; rules and audit-engine typecheck clean.Agent skill
No change needed. The skill links to the rule pages, which are the reference and are updated here.