Skip to content

The JSON report leaves ignored findings out unless --all is given - #22

Merged
MartenH merged 1 commit into
mainfrom
json-without-ignored
Oct 31, 2026
Merged

MartenH merged 1 commit into
mainfrom
json-without-ignored

Conversation

@MartenH

@MartenH MartenH commented Oct 30, 2026

Copy link
Copy Markdown
Owner

Ignoring a kind of finding did not shrink the JSON report: Report.json wrote every finding, whatever its severity. On a large real-world model that made a report of hundreds of megabytes, nearly all of it findings the policy ignores, while the text report of the same run was a few kilobytes.

--format json now leaves ignored findings out, as JUnit already does. summary.ignored still counts them, and check --all --format json writes them too.

This changes a documented behaviour, so it is your call: docs/report.md said nothing to exclude them, and json() was commented "every severity included". I kept version at 1, since the shape is the same and a reader sees fewer findings only when it asked a policy to ignore them. If you would rather bump it, or keep them by default behind a new option, that is a small change.

Tests: test_ignored_findings_are_left_out_unless_asked_for covers both, and test_the_reports_carry_the_filters now asks for all, since it reads ignored findings. report.v and report_test.v were already not vfmt-clean; this leaves that as it was, to keep the diff to the change.

🤖 Generated with Claude Code

A policy that ignores a kind of finding did not make the report any
smaller: every ignored finding was still written. On a large model the
report was hundreds of megabytes, nearly all of it ignored, where the
text report of the same run was a few kilobytes.

As in JUnit, ignored findings are now left out; `summary.ignored` still
counts them, and --all writes them too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T20:54:02.201754Z c312118 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@MartenH
MartenH merged commit 30dc201 into main Oct 31, 2026
2 checks passed
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