27 lines
1.0 KiB
Python
27 lines
1.0 KiB
Python
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",
|
|
)
|
|
data = json.loads(result.stdout)
|
|
|
|
# Check all categories for the helpers we care about
|
|
gui = [f for f in data.get("files", []) if "gui_2" in f.get("filename", "")][0]
|
|
all_findings = gui.get("findings", [])
|
|
# Group by context
|
|
by_context = {}
|
|
for f in all_findings:
|
|
ctx = f.get("context", "")
|
|
by_context.setdefault(ctx, []).append(f)
|
|
|
|
# Check the existing helper
|
|
for ctx in ["_tier_stream_scroll_sync_result", "_tier_stream_scroll_sync_result.dispatcher", "_install_default_layout_if_empty", "_install_default_layout_if_empty_result", "render_tier_stream_panel"]:
|
|
print(f"=== {ctx} ===")
|
|
findings = by_context.get(ctx, [])
|
|
for f in findings:
|
|
print(f" L{f['line']} [{f['category']}] {f['kind']}: {f.get('context_extra', '')}")
|
|
if not findings:
|
|
print(" (no findings)") |