Skip to content

fix(cli): refuse a run whose config rule selection plus WCAG level leaves zero rules #2110 - #2156

Merged
nc9 merged 2 commits into
mainfrom
boat/zero-rules-2110
Nov 21, 2026
Merged

nc9 merged 2 commits into
mainfrom
boat/zero-rules-2110

Conversation

@nc9

@nc9 nc9 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Closes #2110. The zero-rules pre-check ran only when --rule-include/--rule-exclude was given. It now runs on every audit, on the resolved selection (flags plus [rules] enable/disable plus WCAG level), before the crawl. Messages mention [rules] enable/disable.

Acceptance: (1) config-only enable + wcag_level refused: test 'config-only [rules] enable of a rule the WCAG level leaves out is refused'. (2) tests cover config-only enable plus wcag_level and --rule-include a11y rule above --wcag-level (existing test).

Gates: format, lint, typecheck clean; scripts/test-suites.ts --run cli: 4568 pass, 0 fail. No docs change needed; no agent skill change.

@nc9
nc9 marked this pull request as ready for review November 20, 2026 21:01
@nc9
nc9 merged commit 51fc88f into main Nov 21, 2026
8 of 15 checks passed
@nc9
nc9 deleted the boat/zero-rules-2110 branch November 21, 2026 00:43
nc9 added a commit that referenced this pull request Nov 21, 2026
* origin/main:
  test(install,audit-engine): run install-hardening and attestation cases concurrently, copy the canonical crawl DB in javascript-shipped #1839 (#2186)
  build(packages): typecheck the tests of crawler, report, utils, tech-detect, core-contracts, config, waf-detect, threat-intel #1859 (#2190)
  fix(cli): refuse a run whose config rule selection plus WCAG level leaves zero rules #2110 (#2156)
  fix(rules): links/anchor-mismatch false positives on translated stores #2092 (#2162)
  fix(rules): coded gap skips for input not fully checked, batch 2 rules #2134 (#2163)
  test(audit-engine): carriedCheckAsFailure keeps the continuation mark #2098 (#2166)
  fix(rules): correct zoom-disabled 1.4.4 wording, related criteria for wcagNone rules #2115 (#2174)
  refactor(cli): list bash completion flags one per line #2116 (#2175)
  feat(rules): waive a public Supabase table by bare name in security/supabase-rls #2103 (#2177)
  test(rules): every site rule emits a check on a clean site, with a shrinking baseline #1741 (#2179)
  feat(rules): report each 5xx page as its own crawl/server-errors finding #2130 (#2181)

Signed-off-by: Nik Cubrilovic <[email protected]>
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.

audit: refuse a run whose config rule selection plus WCAG level leaves zero rules

1 participant