Repository navigation
fix(rules): exclude hidden tables from table-duplicate-name - #1641
Conversation
Closes squirrelscan#1637 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Ching-Wei Kang <[email protected]>
|
Reviewed head: 098c1aa Verdict: no blocking findings, pending maintainer review. Thanks for the fix and the thorough tests. Findings, most severe first:
Checks against the issue's acceptance criteria (#1637): closed dialog, Conventions: rule docs updated, CHANGELOG nik |
|
Thanks for the review. On the two low findings:
No code change needed from my side unless the maintainer prefers a different name. |
Signed-off-by: Ching-Wei Kang <[email protected]>
|
Reviewed head: ae31851 Verdict: no blocking findings, pending maintainer review. The only commit since the last reviewed head (098c1aa) is Conventions unchanged: rule docs, CHANGELOG entry, no new dependency, DCO sign-off. CI: all 15 completed checks on this head are green, 1 skipped. nik |
Summary
a11y/table-duplicate-namenow compares only tables in the accessibility tree. A table inside a closed<dialog>, or under ahidden(nothidden="until-found"),inert,aria-hidden="true"ordisplay:noneancestor, is resolved with the sharedcreateStaticVisibilityreader (plus aninertancestor walk) and left out of the comparisonhiddenTablesin the check's details rather than silently droppedtable-duplicate-name-unconfirmedvia the sharedunconfirmedRow, not as a duplicatetables-without-namesnow count exposed and unsettled tables onlyCloses #1637
Acceptance criteria
<dialog>are not counted as exposedhidden,inertor inlinedisplay:noneancestor are excluded the same way/tables-hidden(one exposed "Content" table, two "Size" tables in separate closed dialogs) passes/tables-visible(two exposed "Size" tables) still warnshiddenTables, and unsettled ones as an explicit unconfirmed rowVerification
bun test ./packages/rules/tests/table-duplicate-name-hidden-1637.test.ts— 11 pass, 0 failbun run scripts/test-suites.ts --run rules— 9,946 pass, 25 todo, 1 fail: the timing assertion inintegrity-adversarial-784.test.ts(untouched here) failed under full-suite load and passes 36/36 when that file is run alone, twicebun run --cwd packages/rules typecheckbun run lint,bun run format:checkbun run docs:check— all checks passedChecklist
Signed-off-byline (git commit -s).Docs:
docs/rules/a11y/table-duplicate-name.mdx. Skill: none.