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
[scorecard] Build the scorecard from the criterion status lines and generate all summary tables #49263
Some tables are generated: the reports index, the conformance page summary, and the rollup. Other tables are still written by hand:
The count table at the top of each <Component>/accessibility.md. A person counts the criterion ratings and types the totals.
The "Known gaps" table on the conformance page.
pnpm a11y:scorecard parses the hand-written count table to build scorecard.json. The data flows the wrong way. A wrong count goes into the JSON without an error.
Proposal
Make the status line under each criterion (`✅ Supports` · `○ Author`) the only source.
pnpm a11y:scorecard parses the status line under each criterion heading into scorecard.json. Include the rating, the responsibility, the flag, the tier, and the level.
It generates the count table in each report between <!-- scorecard-counts:start/end --> markers.
It generates the "Known gaps" table on the conformance page from the ⚠️ and ❌ criteria.
pnpm a11y:scorecard:check fails when a generated table is stale.
Done when
No summary or count table in the reports or on the conformance page is written by hand.
scorecard.json does not depend on any hand-written count.
CI fails when a rating changes and the tables are not regenerated.
Activity