mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-19 00:02:51 -07:00
chore(scripts): refactor shellcheck command and enforce LF for review.sh
This commit is contained in:
+11
-7
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user