Skip to content

docs: content/quality is documented but disabled, so the category page lists 20 rules for 19 that run #218

Closed

Description

@nc9

Found while adding content/unrendered-markup (#217). Pre-existing on main, not caused by that branch.

content/quality sets disabled: true in its meta (packages/rules/src/content/quality.ts:66), so loadAllRules() skips it and it never runs. But docs/rules/content/index.mdx still carries a card for it, and docs/rules/content/quality.mdx still documents it.

The effect is that the Content category page lists 20 rules while 19 actually run. The published rule counts elsewhere are correct, because they are derived from the live loader, so the totals do not disagree and nothing fails CI. A reader of the category page just sees one rule that will never appear in a report.

Reproduce:

cd packages/rules
bun -e 'import {getRulesByDomain} from "./src/loader"; console.log(getRulesByDomain("content").length)'   # 19
grep -c "<Card title=" ../../docs/rules/content/index.mdx                                                # 20

Either re-enable the rule or drop the card and mark the docs page as unavailable. Whichever way it goes, the count in the category card on docs/rules/index.mdx and the Content row in the two per-category tables are already 19 and would not change.

Related, and probably the same decision: packages/rules/src/content/article-toc.ts exports articleTocRule but is not in packages/rules/src/content/index.ts, so it is dead code. docs/docs.json already redirects /rules/content/article-toc to /rules/content, which suggests it was retired and the module was left behind.

Acceptance Criteria

  • The Content category page (docs/rules/content/index.mdx) no longer presents content/quality as a rule that runs: its card is removed or clearly labelled retired, and its text no longer says it can be turned on with an OpenRouter key
  • The number of runnable-rule cards on the Content category page equals the number of content/* rules returned by getRulesByDomain("content"), and the Content counts on docs/rules/index.mdx still match the live loader
  • The unregistered content/article-toc module is tracked in rules(content): article-toc rule file exists but is never registered, so it never runs and has no doc page #321.
  • make validate in docs/ passes

Part of #638.

Activity

  1. added
    documentation
    rules
    P3
    size: XS
    on Sep 23, 2026
  2. nc9 commented on Oct 11, 2026

    @nc9
    ContributorAuthor

    Checked against current main (ad95fb2): STILL TRUE, with new numbers.

    • packages/rules/src/content/quality.ts:67 still sets disabled: true.
    • docs/rules/content/index.mdx now has 24 rule cards (href="/rules/content/<slug>"). The content rules array in packages/rules/src/content/index.ts has 24 entries, contentQualityRule among them, so 23 actually run. The 23 on the Content card in docs/rules/index.mdx is correct.
    • The quality card (lines 23 to 24) still reads "Off by default and needs an OpenRouter key", which criterion 1 asks to remove.
  3. nc9 commented on Oct 16, 2026

    @nc9
    ContributorAuthor

    Fixed in #868 (51af089): the content/quality card is gone from docs/rules/content/index.mdx, which now has 24 cards for the 24 live content/* rules. The Content count on docs/rules/index.mdx (24) still matches.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3documentationrulessize: XS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions