2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-05 12:00:16 +00:00
cheat.sheets/sheets/shellcheck
2018-10-10 10:47:29 +00:00

20 lines
425 B
Plaintext

# shellcheck
# Shell script static analysis tool.
# Check a shell script:
shellcheck file.sh
# Override script's shebang:
shellcheck --shell sh|bash|ksh file.sh
# Ignore certain errors:
shellcheck --exclude SC1009 file.sh
# Ignore multiple errors:
shellcheck --exclude SC1009,SC1073 file.sh
# To disable some check, e.g. SC2034, for a statement in code
# add comment with the following line
# shellcheck disable=SC2034