Skip to content

fix(report,cli): [[ignore]] reasons and unmatched entries in every report (#1262) - #1791

Merged
nc9 merged 1 commit into
mainfrom
feat/1262-ignore-followups
Nov 12, 2026
Merged

nc9 merged 1 commit into
mainfrom
feat/1262-ignore-followups

Conversation

@nc9

@nc9 nc9 commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

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

  • Criterion 9 (reason shown in the reports): an entry with a reason that 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. (JSON meta.ignored.entries[].reason and the LLM/XML <entry reason> already had it). One helper, ignoredNoteLines (packages/report/src/ignored.ts), feeds all four renderers.
  • Criterion 5 (the HTML report lists unused entries): the HTML report imported unusedIgnoreEntries and never used it; it now lists Ignore entry N (rule) matched nothing. like the other formats, keeping the entry's reason when it has one.
  • Docs (criterion 14): docs/configuration/ignore.mdx shows the per-entry lines, says which renderers print them, and states what a message does after a partial waiver (below).
  • Tests: 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-ignore prints none) and the CLI e2e (audit-ignore-e2e.test.ts asserts the reason line in the text report).

Found stale on the issue (verified against main, not changed here)

  • Criterion 13 (selectors tracked in a follow-up): selectors are implemented (rules/src/ignore-selector.ts, documented in ignore.mdx); nothing to file.
  • Criterion 6 (ctx.ignore opt-in messages): not shipped. The mechanism is: a rule with messageCountsItems gets 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.
  • Criterion 7 (carried smart-audit findings honour an ignore): not done; the report already warns (carriedStale), as documented. Cache invalidation per targeted rule and the template fan-out sibling have tests (ignore-rule-cache-1262, ignore-template-fanout-1262).
  • Criteria 12 (cloud) and the skills issue: private / process.

Gates

report package tests (103 files, chunks of 8) and the CLI report and ignore e2e tests pass; apps/cli format:check, workspace lint and typecheck clean; make validate in docs/ passes; lane-precheck no FAIL. scripts/test-suites.ts --run rules|rest not 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).

@nc9
nc9 force-pushed the feat/1262-ignore-followups branch from 30ef1a2 to 268aec4 Compare November 12, 2026 08:40
@nc9
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
nc9 force-pushed the feat/1262-ignore-followups branch from 268aec4 to 782d4b4 Compare November 12, 2026 09:08
@nc9
nc9 merged commit a396bb1 into main Nov 12, 2026
16 checks passed
@nc9
nc9 deleted the feat/1262-ignore-followups branch November 12, 2026 09:28
@nc9 nc9 mentioned this pull request Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant