ci: imprpove warning for size check

This commit is contained in:
quotentiroler
2026-02-09 14:30:36 -08:00
parent a172ff9ed2
commit b40a7771e5

View File

@@ -347,6 +347,7 @@ def _write_github_summary(
"""Write a Markdown job summary to $GITHUB_STEP_SUMMARY."""
lines: List[str] = []
lines.append("## Code Size Check Failed\n")
lines.append("> ⚠️ **DO NOT trash the code base!** The goal is maintainability.\n")
if crossed:
lines.append(f"### {len(crossed)} file(s) crossed the {threshold}-line threshold\n")
@@ -524,6 +525,8 @@ def main():
# Print actionable summary so contributors know what to do
print("" * 60)
print("❌ Code size check failed\n")
print(" ⚠️ DO NOT just trash the code base!")
print(" The goal is maintainability.\n")
if crossed:
print(f" {len(crossed)} file(s) grew past the {args.threshold}-line limit.")
if grew: