From 4813228a0cac29742e1b7692f14273ef25c30d17 Mon Sep 17 00:00:00 2001 From: Jeremie Fraeys Date: Tue, 17 Feb 2026 20:32:50 -0500 Subject: [PATCH] chore: make file size check a warning instead of failure --- scripts/ci-checks.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/ci-checks.sh b/scripts/ci-checks.sh index d13e229..3d5fca2 100755 --- a/scripts/ci-checks.sh +++ b/scripts/ci-checks.sh @@ -38,13 +38,13 @@ else fi echo "" -# Check 3: Check file size limits (no file >500 lines) -echo "3. Checking file size limits (max 500 lines)..." +# Check 3: Check file size limits (warn if >500 lines) +echo "3. Checking file size limits (warn if >500 lines)..." OVERSIZED=$(find ./internal ./cmd -name '*.go' -type f -exec wc -l {} + 2>/dev/null | awk '$1 > 500 {print $2}' | head -10) if [ -n "$OVERSIZED" ]; then - echo -e "${RED}FAIL: Files exceeding 500 lines:${NC}" + echo -e "${YELLOW}WARNING: Files exceeding 500 lines:${NC}" find ./internal ./cmd -name '*.go' -type f -exec wc -l {} + 2>/dev/null | awk '$1 > 500 {print " " $1 " lines: " $2}' - FAILED=1 + # Not failing the build for this, just warning else echo -e "${GREEN}PASS: All files under 500 lines${NC}" fi