Repository navigation
Conversation
…ted, so a re-render and re-export keep summary.skipped #518 Signed-off-by: Nik Cubrilovic <[email protected]>
…, strips terminal controls #518 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
fix/report-input-skipped-518
branch
from
October 31, 2026 00:26
60c234c to
67db49e
Compare
Signed-off-by: Nik Cubrilovic <[email protected]>
Merged
Contributor
Author
|
Landed in v0.0.147 as nik |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #518 (the report side shipped in v0.0.144 with #554 and #1344/#1356; this is the read-back that was left).
squirrel report --input <file>droppedskippedChecks(the type said "Not read back"), so a saved JSON report that was re-rendered or re-exported lost the list andsummary.skipped: the pages a rule never finished checking read as a clean audit again, the exact false "fixed" #518 describes.parseSkippedChecks(value)(packages/report/src/skipped.ts): validates the list from the untrusted file. A listed reason only (scan-truncated,rule-timed-out,rule-errored), string rule id and check, string pages (capped at 5,000 a entry, 1,000 entries), whole counts; a bad entry is dropped, a non-list reads as none.restoreSkippedChecks(ruleResults, skipped, metaFor): rebuilds one skip row per entry (the page list aspages, the true total indetails.pagesTruncated,details.pagesfor a timed-out or errored rule,details.erroredforrule-errored), which is exactly whatcollectSkippedChecksreads, so the round trip is lossless. A skipped-only rule gets a meta stub (category from the id prefix). Skips stay out ofissues.convertSlimReportincontrollers/report.tscalls both.Tests (
apps/cli/tests/reports/report-input-skipped-518.test.ts, 7; 3 fail on main): re-export keepsskippedChecksandsummary.skippedidentical for per-page, folded (40 pages, 2 listed), timed-out and errored skips; the folded entry keeps its total and clipped list; skips never become issues; no skips stays no key; hostile entries (unlisted reason, non-string pages, negative or huge counts, wrong types) are dropped; a non-list reads as none. Gates: tsgo in apps/cli and packages/report, cli format:check and lint, report skipped/status/timeouts tests (21),make validate, released-changelog guard.Docs:
docs/configuration/output.mdx(read-back paragraph under Skipped checks). CHANGELOG under Unreleased / Fixed. Skill: no change needed (the JSON shape is unchanged).nik
Review round: a skip entry is kept only for a
category/namerule id (__proto__,constructorand similar are dropped, andObject.hasOwnguards the lookup), a forged page count over 10,000,000 falls back to the pages listed, and names, check names and pages have terminal escapes, C1 controls, bidi overrides and newlines removed (stripUnsafeLineText, new in core-contracts, with tests) because they reach the console. The output.mdx sentence now states what is dropped and what falls back.convertSlimReportstill buildsissuesinto a plain object by id (pre-existing, not changed here).