Skip to content

docs(rules): auto-generated Options tables print every type as unknown and every default as undefined on 25 pages #319

Closed

Description

@nc9

25 rule doc pages under docs/rules/ carry an ## Options table whose type column is unknown and whose default column is `undefined` for every row (e.g. adblock/blocked-links, adblock/element-hiding, content/article-links). The generator that produced them could not read the zod option schemas. The rewrite in #314 replaced 13 of them by hand from the schema in each rule source; the remaining pages in other categories still have the broken tables until their rewrite lands (squirrelscan/squirrelscan PR for batch c).

Acceptance Criteria

  • No page under docs/rules/ contains an Options row with type unknown or default undefined unless the schema really is unknown.
  • A check in make validate (or a docs test) fails on any such row so the defect cannot come back.
  • If a generator script produced these tables, it reads types and defaults from the zod schema (.describe(), .default()) or is removed in favour of hand-maintained tables.

Part of #638.

Activity

  1. nc9 commented on Sep 23, 2026

    @nc9
    ContributorAuthor

    Criterion 1 looks done: after the search-first rewrites (#314, #315, #316) no page under docs/rules/ has an Options row with type unknown or default undefined (the only undefined hits are in prose). Still open: criterion 2 (make validate in docs/ is only tangly check --strict, so nothing stops such a row coming back) and criterion 3 (the generator question).

  2. added
    documentation
    P3
    size: S
    on Sep 23, 2026
  3. nc9 commented on Oct 10, 2026

    @nc9
    ContributorAuthor

    Ticked 1 and 3. On main no Options row under docs/rules/ has type unknown or default undefined, and neither repo has a generator for these tables any more, so they are hand-maintained. Left: criterion 2, a check that fails on such a row (make validate is still only tangly check --strict).

  4. nc9 commented on Oct 16, 2026

    @nc9
    ContributorAuthor

    The last criterion is done in #876 (bb528c3): docs:check / make validate fails on a rule page ## Options row whose Type cell is unknown or whose Default cell is `undefined`. A test covers it.

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

    P3documentationsize: S

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions