From b40a7771e5ef6bf8785babe25d4f989bca0a9ce2 Mon Sep 17 00:00:00 2001 From: quotentiroler Date: Mon, 9 Feb 2026 14:30:36 -0800 Subject: [PATCH] ci: imprpove warning for size check --- scripts/analyze_code_files.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/analyze_code_files.py b/scripts/analyze_code_files.py index 3696b0e6e4..984d3f4483 100644 --- a/scripts/analyze_code_files.py +++ b/scripts/analyze_code_files.py @@ -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: