From 9f9570f81fc3100e87f2d240d9f99deced4029d2 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sun, 14 Sep 2025 21:50:15 -0400 Subject: [PATCH] fix(lint): do not check-eol on binary files --- .github/workflows/__call-common-lint.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/__call-common-lint.yml b/.github/workflows/__call-common-lint.yml index 42749a65..572fce5d 100644 --- a/.github/workflows/__call-common-lint.yml +++ b/.github/workflows/__call-common-lint.yml @@ -156,6 +156,11 @@ jobs: continue fi + # Skip binary files using file --mime-encoding + if file --mime-encoding "$file" | grep -q ": binary$"; then + continue + fi + # Check if file ends with newline using tail -c 1 if [[ -n "$(tail -c 1 "$file")" ]]; then error=1