Repository navigation
fix(report,cli): [[ignore]] reasons and unmatched entries in every report (#1262) - #1791
Merged
Merged
Conversation
9 of 15 tasks
nc9
force-pushed
the
feat/1262-ignore-followups
branch
from
November 12, 2026 08:40
30ef1a2 to
268aec4
Compare
nc9
marked this pull request as ready for review
November 12, 2026 08:47
…r in the console, text, Markdown and HTML reports; docs say what a message does after a partial waiver #1262 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
feat/1262-ignore-followups
branch
from
November 12, 2026 09:08
268aec4 to
782d4b4
Compare
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.
Part of #1262 (the criteria that were open and public). Does not close it: the carried-findings and cloud criteria stay open.
What was still open and is now done
reasonshown in the reports): an entry with areasonthat waived something now prints its own line in the console, text, Markdown and HTML reports:Ignore entry 1 (security/cookie-flags), Shopify sets these: 3 findings waived.(JSONmeta.ignored.entries[].reasonand the LLM/XML<entry reason>already had it). One helper,ignoredNoteLines(packages/report/src/ignored.ts), feeds all four renderers.unusedIgnoreEntriesand never used it; it now listsIgnore entry N (rule) matched nothing.like the other formats, keeping the entry's reason when it has one.docs/configuration/ignore.mdxshows the per-entry lines, says which renderers print them, and states what a message does after a partial waiver (below).ignored-1262.test.ts(HTML lists the unmatched entry; text, Markdown and HTML show the reason line; a reason on an unmatched entry is kept; an entry with neither reason nor waiver says only that;--no-ignoreprints none) and the CLI e2e (audit-ignore-e2e.test.tsasserts the reason line in the text report).Found stale on the issue (verified against main, not changed here)
rules/src/ignore-selector.ts, documented inignore.mdx); nothing to file.ctx.ignoreopt-in messages): not shipped. The mechanism is: a rule withmessageCountsItemsgets its leading count rewritten from the remaining items, every other rule keeps its message and gains(N ignored). A message that names its items (the platform-cookie note lists cookie names) can still name one you waived. The docs now say exactly this; changing it is a per-rule change, left for the maintainer to decide whether to restate the criterion.carriedStale), as documented. Cache invalidation per targeted rule and the template fan-out sibling have tests (ignore-rule-cache-1262,ignore-template-fanout-1262).skillsissue: private / process.Gates
reportpackage tests (103 files, chunks of 8) and the CLI report and ignore e2e tests pass;apps/cliformat:check, workspace lint and typecheck clean;make validateindocs/passes; lane-precheck no FAIL.scripts/test-suites.ts --run rules|restnot run (heavy); the touched packages' tests ran by path.Skill check: the squirrelscan agent skill needs no change (report text only, no flag or config change).