Repository navigation
Description
Found while fixing #478. docs/configuration/rule-options.mdx and a few other pages configure rule options that no rule reads, so copying them changes nothing. Rule options are looked up by exact rule id (packages/rules/src/runner.ts, getRuleOptions), and a rule with an optionsSchema parses them with zod, which drops unknown keys silently.
Checked by parsing every TOML block on the page and comparing it with the rule registry and each rule's optionsSchema:
docs/configuration/rule-options.mdx
content/article-links:min_external_linksis not an option. The rule hasshort_min_external,medium_min_external,long_min_external(and*_min_internal,short_max_words,long_min_words).links/orphan-pages,links/dead-end-pages:exclude_patternsis ignored. The option isexcludePatterns(camelCase).performance/ttfbandperformance/dom-sizename no rule: the ids areperf/ttfbandperf/dom-size, and ttfb's options aregood_threshold/poor_threshold.content/keyword-stuffing:min_word_countis not an option (density_threshold,min_occurrences,whitelist).security/http-to-https:allow_localhostandallow_patternsare not options (sampleLimitonly).adblock/element-hiding,adblock/blocked-links:listsis not an option (maxMatchesToReportonly).a11y/skip-link:requiredis read by nothing; the rule takes no options.crawl/all-noindex-pages:thresholdis read by nothing (the rule readswarnOnPatterns/errorOnPatterns).
docs/configuration/rules.mdx
"core/og-*"in adisablelist matches no rule: patterns support*,category/*and exact ids only (packages/utils/src/rule-pattern.ts), not a partial glob.
Related, lower priority: content/quality and ai/ai-content appear in disable lists on rules.mdx, cli/analyze.mdx, cli/init.mdx and rules/content/quality.mdx, but both rules are disabled: true in code and never load, so those entries do nothing. Also crawl/all-noindex-pages declares optionsSchema outside meta, so the runner never applies its defaults (the rule reads the raw options, so the documented keys still work).
Acceptance Criteria
- Every
[rule_options."..."]table indocs/configuration/rule-options.mdxnames an existing rule id, and every key in it is an option that rule reads - No docs page uses a rule pattern that
matchesRulePatterncannot match (such ascore/og-*), or the page says the pattern is unsupported -
bun x [email protected] check --strictpasses
Activity
nc9 commentedon Oct 6, 2026
One more on
rule-options.mdx:content/keyword-stuffing'sdensity_thresholdis a percentage (default3, compared against(count / total) * 100inpackages/rules/src/content/keyword-stuffing.ts), but lines 206-225 and 762 write it as a fraction (0.03,0.02,0.05). That sets a threshold of a few hundredths of a percent, so any word pastmin_occurrencesis flagged.examples.mdxhad the same mistake and is fixed in the #478 PR.docs(config): document the rule options rules actually read #496
docs(config): document the rule options rules actually read #496 (#513)