forked from koalaman/shellcheck
-
Notifications
You must be signed in to change notification settings - Fork 0
Ignore
koalaman edited this page Sep 5, 2015
·
1 revision
To ignore a shellcheck error, you can do one of three things:
Use a directive to disable a certain instance:
hexToAscii() {
# shellcheck disable=SC2059
printf "\x$1"
}
Use a -e
flag to disable a specific error when running shellcheck:
$ shellcheck -e SC2059 myscript
Set the SHELLCHECK_OPTS
variable in your .bashrc
, /etc/profile
or equivalent:
export SHELLCHECK_OPTS="-e SC2059"