ShellCheck is a static analysis tool for shell scripts.
ShellCheck is available through most package managers. @see https://github.com/koalaman/shellcheck?tab=readme-ov-file#installing
brew search shellcheckTo run without installing:
docker run --rm -v "$PWD:/mnt" koalaman/shellcheck:stable <FILES>- Specify a code (
SC9999), code range (SC9000-SC9999),allto disable.
hexToAscii() {
# shellcheck disable=SC2059
printf "\x$1"
}- Homepage: timonwong.shellcheck
Requires locally-installed ShellCheck
"shellcheck.enable": true,
"shellcheck.enableQuickFix": true,
"shellcheck.run": "onType",
"shellcheck.executablePath": "/home/linuxbrew/.linuxbrew/bin/shellcheck",