MIL-010 task 6: reusable workflow code-metrics.yml and tools/code-metrics.sh

Task: MIL-010#6
Refs #160
This commit is contained in:
2026-10-14 13:50:34 +08:00
parent 5bc14d789d
commit 4fc0a8cab3
5 changed files with 526 additions and 0 deletions
+2
View File
@@ -205,6 +205,8 @@ def main(argv: list[str] | None = None) -> int:
f"::error::[configuration] metrics file '{args.metrics}' cannot be read: {error}"
)
return 1
if file_count == 0:
print("::notice::No code files were found; the badges show 0.")
if coverage is None:
print("::notice::No coverage-report given; no coverage badge is written.")
metrics_json = json.dumps(metrics, indent=2, sort_keys=True) + "\n"