Re:Shellcheck: a static analysis tool for shell scripts
by eridius on Thursday February 05, 2015 @12:57PM
(#9004678)
Shellcheck is great. The Vim Syntastic plugin already knows about Shellcheck so if you use Syntastic and install Shellcheck you'll automatically start getting warnings on your code.
BTW, it can be a little hard to figure this out, but if Shellcheck gives you a warning that you want to ignore (because you intended to trigger that behavior), you can put the following comment above the offending line:
# shellcheck disable=SC1234
where "SC1234" is replaced with the actual error code that Shellcheck gives.
BTW, it can be a little hard to figure this out, but if Shellcheck gives you a warning that you want to ignore (because you intended to trigger that behavior), you can put the following comment above the offending line:
where "SC1234" is replaced with the actual error code that Shellcheck gives.