Skip to content

Commit caea44f

Browse files
committed
fix: exclude lock files from max-line-length check
1 parent f43ef43 commit caea44f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/scripts/max-line-length.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ for glob in "${glob_array[@]}"; do
4444
if [ $? -eq 1 ]; then
4545
found_lines=1
4646
fi
47-
done < <(find "$folder_path" -type f -name "$glob" -print0)
47+
done < <(find "$folder_path" -type f -name "$glob" \
48+
! -name "*.lock" ! -name "*.lock.*" ! -name "*-lock.*" -print0)
4849
done
4950

5051
# Exit with appropriate code

0 commit comments

Comments
 (0)