Private
Public Access
0
0

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).
This commit is contained in:
2026-06-17 18:54:52 -04:00
parent 241f5b46ff
commit 737bbee13b
-1
View File
@@ -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)]