MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / load_alerts

Function load_alerts

scripts/developer-guide/vale_report_to_html.py:66–74  ·  view source on GitHub ↗
(report: Path)

Source from the content-addressed store, hash-verified

64
65
66def load_alerts(report: Path) -> list[dict[str, object]]:
67 if not report.is_file():
68 return []
69 try:
70 data = json.loads(report.read_text(encoding="utf-8"))
71 except json.JSONDecodeError:
72 return []
73
74 return _collect_alerts(data)
75
76
77def render_alert_rows(alerts: Iterable[dict[str, object]]) -> str:

Callers 1

mainFunction · 0.85

Calls 1

_collect_alertsFunction · 0.70

Tested by

no test coverage detected