import json
d = json.load(open(r"C:\Users\Ed\AppData\Local\manual_slop\tier2\api_hooks_audit.json"))
for f_info in d["files"]:
    for finding in f_info["findings"]:
        if finding["category"] in ("INTERNAL_SILENT_SWALLOW", "INTERNAL_BROAD_CATCH", "INTERNAL_OPTIONAL_RETURN", "UNCLEAR", "INTERNAL_RETHROW"):
            ctx = finding.get("context", "")
            note = finding.get("note", "")[:80]
            line = finding["line"]
            cat = finding["category"]
            kind = finding["kind"]
            print(f"L{line:4d} [{kind:7s}] {cat:30s} ctx={ctx:30s} note={note}")