ci: keep entry line cap precedence over frontend cap

This commit is contained in:
CJACK.
2026-03-16 23:06:58 +08:00
parent d35e5eab25
commit 7648d5f192

View File

@@ -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