You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs(rules): auto-generated Options tables print every type as unknown and every default as undefined on 25 pages #319
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.
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).
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).
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.
Activity
nc9 commentedon Sep 23, 2026
Criterion 1 looks done: after the search-first rewrites (#314, #315, #316) no page under
docs/rules/has an Options row with typeunknownor defaultundefined(the onlyundefinedhits are in prose). Still open: criterion 2 (make validateindocs/is onlytangly check --strict, so nothing stops such a row coming back) and criterion 3 (the generator question).nc9 commentedon Oct 10, 2026
Ticked 1 and 3. On main no Options row under
docs/rules/has typeunknownor defaultundefined, 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 validateis still onlytangly check --strict).build(docs): fail docs:check on dead internal links, dead #anchors, m…
build(docs): link check strips tags without a regex, reads only Type/…
build(docs): fail docs:check on dead internal links, dead #anchors, m…
build(docs): link check strips tags without a regex, reads only Type/…
nc9 commentedon Oct 16, 2026
The last criterion is done in #876 (bb528c3):
docs:check/make validatefails on a rule page## Optionsrow whose Type cell isunknownor whose Default cell is`undefined`. A test covers it.