From 2e85d48bdc836f6dfba80622d2c2cca1aee3de85 Mon Sep 17 00:00:00 2001 From: mkorwel Date: Fri, 13 Mar 2026 18:07:46 +0000 Subject: [PATCH] chore(scripts): refactor shellcheck command and enforce LF for review.sh --- .gitattributes | 1 + scripts/lint.js | 18 +++++++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.gitattributes b/.gitattributes index deab5ae88b..4ce7b88578 100644 --- a/.gitattributes +++ b/.gitattributes @@ -22,3 +22,4 @@ Makefile eol=lf *.eot binary *.ttf binary *.otf binary +scripts/review.sh text eol=lf diff --git a/scripts/lint.js b/scripts/lint.js index 05cf5780b9..3b84ffdc19 100644 --- a/scripts/lint.js +++ b/scripts/lint.js @@ -123,13 +123,17 @@ export function runShellcheck() { return; } - const command = `npx shellcheck \ - --check-sourced \ - --enable=all \ - --exclude=SC2002,SC2129,SC2310 \ - --severity=style \ - --format=gcc \ - --color=never ${files.join(' ')}`; + const args = [ + '--check-sourced', + '--enable=all', + '--exclude=SC2002,SC2129,SC2310', + '--severity=style', + '--format=gcc', + '--color=never', + ...files, + ]; + + const command = `npx shellcheck ${args.join(' ')}`; try { const output = execSync(command, {