From 7648d5f1929a1fea7cd50fd0a481b70dd94d5198 Mon Sep 17 00:00:00 2001 From: "CJACK." Date: Mon, 16 Mar 2026 23:06:58 +0800 Subject: [PATCH] ci: keep entry line cap precedence over frontend cap --- tests/scripts/check-refactor-line-gate.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/scripts/check-refactor-line-gate.sh b/tests/scripts/check-refactor-line-gate.sh index 8a7f890..3fda714 100755 --- a/tests/scripts/check-refactor-line-gate.sh +++ b/tests/scripts/check-refactor-line-gate.sh @@ -71,10 +71,10 @@ while IFS= read -r file; do lines="$(wc -l < "$abs" | tr -d ' ')" limit="$DEFAULT_MAX" - if is_frontend_file "$file"; then - limit="$FRONTEND_MAX" - elif is_entry_file "$file"; then + if is_entry_file "$file"; then limit="$ENTRY_MAX" + elif is_frontend_file "$file"; then + limit="$FRONTEND_MAX" fi if (( lines > limit )); then