MCPcopy Create free account
hub / github.com/idank/explainshell / audit_run

Function audit_run

tests/evals/render/render_eval.py:1370–1378  ·  view source on GitHub ↗
(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

1368
1369
1370def audit_run(args: argparse.Namespace) -> int:
1371 run_dir = Path(args.run).resolve()
1372 summary = _load_summary(run_dir)
1373 rules = _select_audit_rules(args.rules)
1374 violations = _scan_audit_run(run_dir, summary, rules)
1375 _print_audit_report(run_dir, summary, rules, violations)
1376 if args.fail_on_violation and any(violations[rule_id] for rule_id, _, _ in rules):
1377 return 1
1378 return 0
1379
1380
1381def build_parser() -> argparse.ArgumentParser:

Callers

nothing calls this directly

Calls 4

_load_summaryFunction · 0.90
_select_audit_rulesFunction · 0.85
_scan_audit_runFunction · 0.85
_print_audit_reportFunction · 0.85

Tested by

no test coverage detected