Private
Public Access
artifacts
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import json
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
result = subprocess.run(
|
||||
["uv", "run", "python", "scripts/audit_exception_handling.py", "--src", "src", "--json"],
|
||||
capture_output=True, text=True, cwd=r"C:\projects\manual_slop_tier2",
|
||||
)
|
||||
if result.returncode != 0:
|
||||
print("AUDIT FAILED:", result.stderr[:1000])
|
||||
sys.exit(1)
|
||||
|
||||
data = json.loads(result.stdout)
|
||||
gui = [f for f in data.get("files", []) if "gui_2" in f.get("filename", "")][0]
|
||||
broad = [f for f in gui.get("findings", []) if f.get("category") == "INTERNAL_BROAD_CATCH"]
|
||||
silent = [f for f in gui.get("findings", []) if f.get("category") == "INTERNAL_SILENT_SWALLOW"]
|
||||
print("BROAD CATCHES:")
|
||||
for f in broad:
|
||||
print(f" L{f['line']} {f['context']}")
|
||||
print("SILENT SWALLOWS:")
|
||||
for f in silent:
|
||||
print(f" L{f['line']} {f['context']}")
|
||||
print(f"TOTAL: {len(broad)} broad, {len(silent)} silent")
|
||||
Reference in New Issue
Block a user