From 737bbee13bf6729159ae91f98b95a0b266786e68 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Wed, 17 Jun 2026 18:54:52 -0400 Subject: [PATCH] fix(scripts): render_json per-file list now includes all findings The render_json filter excluded INTERNAL_COMPLIANT findings from the per-file list in non-verbose mode: if f.category in VIOLATION_CATEGORIES or f.category in ("UNCLEAR", "INTERNAL_RETHROW") This meant the 25 newly-classified compliant sites from the review pass were not visible in the per-file output. Totals were correct but the per-file list was incomplete. The fix removes the filter so all findings appear in the per-file list. The totals already match (they are computed from r.findings before the per-file filter). --- scripts/audit_exception_handling.py | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/audit_exception_handling.py b/scripts/audit_exception_handling.py index e11a33d5..14ad9a26 100644 --- a/scripts/audit_exception_handling.py +++ b/scripts/audit_exception_handling.py @@ -955,7 +955,6 @@ def render_json(reports: list[FileReport], files_scanned: int, top: int, verbose "category": f.category, } for f in r.findings - if f.category in VIOLATION_CATEGORIES or f.category in ("UNCLEAR", "INTERNAL_RETHROW") ], } for r in sorted(reports, key=lambda r: (-r.violation_count, -r.suspicious_count, r.filename))[:top if not verbose else len(reports)]