Repository navigation
feat(report): list scan-truncated skips in the JSON report - #554
Conversation
Add a top-level skippedChecks list (rule id, check, reason, pages) and a summary.skipped count to the JSON report, so a page where content/hidden-text or content/dev-leakage hit a scan limit is no longer indistinguishable from a clean one. Folded skips are expanded from pages[]. Skips stay out of issues. Correct docs/configuration/output.mdx to the real JSON shape. Refs #518 Signed-off-by: Nik Cubrilovic <[email protected]>
|
Reviewed the diff. The import,
Test coverage for per-page, folded and clipped skips looks good. The docs rewrite fixes a stale schema. |
|
Review of #554 (skippedChecks in JSON report) I read the diff and confirmed that
Test coverage looks good: per-page skips, folded skips, clipped folds, and the check that No blocking issues found. |
|
Re the (low) |
Summary
Closes #518
A page where
content/hidden-textorcontent/dev-leakagehit a scan limit is recorded as a skipped check, but the JSON renderer drops everything that is not a fail or warn. A consumer reading "no issue" then treats the page as clean. This follows the maintainer's triage on the issue.skippedCheckslist, each entry{ ruleId, name, check, reason, pages, pagesCount, pagesHasMore }. Version one lists onlyscan-truncatedskips.reasonis on every entry so other reasons can be added later.pages[]) are expanded, so every page is listed. A clipped fold keeps the true total inpagesCountand setspagesHasMore.summary.skippedis the sum ofpagesCount.passed,warnings,failedand every other key keep their names and values.issues.skippedChecksis omitted when empty, so a report with no skips has the same top-level keys as before.docs/configuration/output.mdxnow documents the real shape (meta,status,score,summary,issues,skippedChecksand the optional keys). The inventedproject,stats,healthandpagesshape is removed, and thejqexamples now use.score.overall. One matchingjqpath indocs/configuration/examples.mdxis fixed too.Notes for review:
skippedChecksforward, because skips are not findings and are not rebuilt into the report. Reports rendered from an audit or the project database do carry it.summary.skippedcounts skipped pages (the same unit as the per-page check counts), not list entries.Verification
bun test packages/report/tests/json-skipped.test.ts packages/report/tests/json-status.test.ts: 9 passbun test apps/cli/tests/reports/output/json.test.ts apps/cli/tests/controllers/report.test.ts packages/report/tests/severity-and-groups.test.ts packages/report/tests/authoritative-counts-1023.test.ts packages/report/tests/editor-summary-malformed.test.ts: 92 passbun run typecheckinpackages/reportandapps/cli: cleanmake validateindocs/: all checks passedFollow-up for squirrelscan/skills
Cloud runners cannot push to the skills repo, so this issue needs filing there. Proposed text:
Checklist
Signed-off-byline (git commit -s).