Repository navigation
The JSON report leaves ignored findings out unless --all is given - #22
Merged
Merged
Conversation
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>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Ignoring a kind of finding did not shrink the JSON report:
Report.jsonwrote 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 jsonnow leaves ignored findings out, as JUnit already does.summary.ignoredstill counts them, andcheck --all --format jsonwrites them too.This changes a documented behaviour, so it is your call:
docs/report.mdsaid nothing to exclude them, andjson()was commented "every severity included". I keptversionat 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_forcovers both, andtest_the_reports_carry_the_filtersnow asks forall, since it reads ignored findings.report.vandreport_test.vwere already notvfmt-clean; this leaves that as it was, to keep the diff to the change.🤖 Generated with Claude Code