We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a85b82b + 03f968b commit 5bdd0d6Copy full SHA for 5bdd0d6
tools/shellcheck.sh
@@ -18,5 +18,8 @@ if ! [ -x "$(command -v shellcheck)" ]; then
18
export PATH="$PATH:$(pwd)/shellcheck-${scversion}"
19
fi
20
21
-# TODO - fix warnings in .buildkite/run-amd-test.sh
22
-find . -name "*.sh" -not -path "./.buildkite/run-amd-test.sh" -print0 | xargs -0 -I {} sh -c 'git check-ignore -q "{}" || shellcheck "{}"'
+# Lists all files currently tracked by Git
+# outputs results separated by a null character
23
+# matches any filename ending with .sh
24
+# run shellcheck on every .sh file tracked by Git.
25
+git ls-files -z | grep -z '\.sh$' | xargs -0 -n 1 shellcheck
0 commit comments