Skip to content

docs(rules): fix rule option tables - #1185

Merged
nc9 merged 1 commit into
squirrelscan:mainfrom
WilliamK112:codex/fix-rule-option-docs-1176
Oct 27, 2026
Merged

nc9 merged 1 commit into
squirrelscan:mainfrom
WilliamK112:codex/fix-rule-option-docs-1176

Conversation

@WilliamK112

Copy link
Copy Markdown
Contributor

Summary

  • correct all affected rule-option TOML examples to use rule_options
  • reject ignored [rules."<id>"] option tables in docs validation
  • cover the validator and spot-check core/meta-title and perf/ttfb

Closes #1176

Validation

  • bun test ./docs/scripts/check-links.test.ts
  • bun run docs:check
  • bun run docs:build
  • bun test ./apps/cli/tests/controllers/config.test.ts ./packages/rules/tests/core-meta-title.test.ts
  • one-off TOML/rule spot check: core/meta-title=pass; perf/ttfb=fail
  • regression proof: the validator fails when one corrected example is reverted
  • detect-secrets 1.5.0

Docs: Corrected fourteen rule-reference pages and added a validation guard. Skill: none.

@nc9
nc9 force-pushed the codex/fix-rule-option-docs-1176 branch from d5c3b1d to 85a8484 Compare October 27, 2026 05:14
@nc9
nc9 merged commit 116e006 into squirrelscan:main Oct 27, 2026
15 checks passed
@nc9

nc9 commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Merged. Thank you @WilliamK112, rejecting the ignored rule-option tables in docs validation means this mistake cannot creep back in. (Nik)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: 14 rule pages put options under [rules."<id>"], which squirrel ignores

2 participants