Skip to content

feat(rules): declare checks for 39 rules, first tranche of #2218 - #2219

Merged
nc9 merged 2 commits into
mainfrom
boat/rule-checks-tranche-2218
Nov 22, 2026
Merged

nc9 merged 2 commits into
mainfrom
boat/rule-checks-tranche-2218

Conversation

@nc9

@nc9 nc9 commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

First tranche of #2218: 39 rules (adblock 3, ai 3, analytics 3, i18n 3, integrity 2, legal 4, local 3, mobile 8, reliability 2, social 5, video 3) declare meta.checks, link problem checks to their clean check, and leave rule-checks-undeclared.json (311 to 272). Generated rule docs list the new check names.

Part of #2218 (does not close it: 272 rules remain, plus the clean-run baselines and the problem-path guard).

Acceptance criteria for this tranche

  • Baseline only shrinks, no rule added, under ~40 rules / 1,500 lines: 39 rules, 816 inserted lines (80 files, 55 of them generated docs).
  • bun scripts/rule-checks.ts --check passes in docs/ and the docs list the new names (make validate in docs/ passes, 74 tests).
  • Check names: none changed, only declared; docs entry in changelog.d/2218-declare-checks-tranche.docs.md (bun scripts/changelog.ts check OK).
  • Not in this tranche: empty baselines, clean-run baselines, problem-path guard.

Gates

  • bun run scripts/test-suites.ts --run rules: 12607 pass, 0 fail (411 files).
  • packages/rules typecheck (tsgo, all three tsconfigs): clean. Package has no lint or format scripts.

Declaration notes

  • Many rules emit one name for pass and warn, so the name is declared both problem and clean (same pattern as content/dev-leakage).
  • ai/site-metadata is report-only (info); it declares problem and clean only because the well-formed test requires both.
  • nap-consistency contact-info and local-business-schema are emitted as pass or info; their absence is the problem, so they are declared with themselves as the cleared check.

Agent skill: no change needed.

@nc9
nc9 marked this pull request as ready for review November 21, 2026 22:40
@nc9
nc9 force-pushed the boat/rule-checks-tranche-2218 branch from 304005b to 19137cc Compare November 21, 2026 23:01
nc9 added 2 commits November 22, 2026 00:05
…n, integrity, legal, local, mobile, reliability, social, video) #2218

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9
nc9 force-pushed the boat/rule-checks-tranche-2218 branch from 19137cc to 4db9887 Compare November 22, 2026 00:19
@nc9
nc9 merged commit 91eef28 into main Nov 22, 2026
10 checks passed
@nc9
nc9 deleted the boat/rule-checks-tranche-2218 branch November 22, 2026 00:46
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