You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rules: crawl/all-noindex-pages declares optionsSchema outside meta, so its options are never validated #511
crawl/all-noindex-pages (packages/rules/src/crawl/all-noindex-pages.ts) declares optionsSchema beside meta, not inside it. The runner only parses rule.meta.optionsSchema (packages/rules/src/runner.ts, getRuleOptions), so this rule's options are never validated and its defaults are never applied: it reads the raw warnOnPatterns / errorOnPatterns with || []. A wrong type (warnOnPatterns = "/blog/") reaches matchesExcludePattern as a string instead of failing with a clear error.
The documented keys do work (verified by an audit from source: errorOnPatterns = ["/blog/"] turned a noindexed /blog/post/ into critical-noindex fail).
Acceptance Criteria
crawl/all-noindex-pages declares its optionsSchema in meta, so the runner applies its defaults and rejects a wrong type like every other rule
A test shows warnOnPatterns / errorOnPatterns still take effect, and a non-array value is rejected
Activity
fix(rules): declare all-noindex-pages optionsSchema in meta (#511)
fix(rules): declare all-noindex-pages optionsSchema in meta (#511) (#607