Skip to content

feat(audit): clickable rule IDs + generated rules reference page - #387

Merged
lex00 merged 1 commit into
mainfrom
feat/audit-rule-links
Jun 16, 2026
Merged

lex00 merged 1 commit into
mainfrom
feat/audit-rule-links

Conversation

@lex00

@lex00 lex00 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Part of #350. Makes every rule name in a report link back to docs.

  • Rules reference page (lint-rules/audit-rules) generated from RULE_CATALOG — one ### <ID> entry per rule (Starlight slugifies to #gha033) with tier, fix kind, remediation, authority. rules-doc.ts renders it; a sync test fails if the committed page drifts from the catalog. Added to the sidebar.
  • Clickable rule IDs — every rule ID in the markdown and HTML reports links to its reference entry via ruleDocUrl(). Verified the built page exposes matching anchors (id="gha033").
  • Additive docUrl on each JSON finding — schemaVersion stays 1.0, demonstrating the additive-stability policy from feat(audit): stable, versioned JSON report contract (#385) #386.

79 audit tests (incl. rules-doc sync + anchor checks); tsc, eslint, astro build green.

Every rule ID in a report (markdown + HTML) now links to its entry in a new
audit rules reference page, generated from RULE_CATALOG (one anchored ### entry
per rule, with tier/fixKind/remediation/authority). rules-doc.ts renders the
page; a sync test keeps the committed mdx in step with the catalog. ruleDocUrl()
gives the stable per-rule URL.

The JSON finding gains an additive docUrl field (schemaVersion stays 1.0 —
demonstrating the additive-stability policy). Wired into the sidebar + cli/audit
docs.

Part of #350
@lex00
lex00 merged commit cf45019 into main Jun 16, 2026
6 checks passed
@lex00
lex00 deleted the feat/audit-rule-links branch June 16, 2026 20:26
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.

1 participant