shellcheck
shellcheck copied to clipboard
ShellCheck, a static analysis tool for shell scripts
Machinet
#### For new checks and feature suggestions - [x] https://www.shellcheck.net/ (i.e. the latest commit) currently gives no useful warnings about this - [x] I searched through https://github.com/koalaman/shellcheck/issues and didn't find...
#### For bugs - Rule Id (if any, e.g. SC1000): SC2015 - My shellcheck version (`shellcheck --version` or "online"): online - [x] The rule's wiki page does not already cover...
#### For bugs - Rule Id (if any, e.g. SC1000): SC1003 - My shellcheck version (`shellcheck --version` or "online"): 0.4.6 / online - [X] I tried on shellcheck.net and verified...
#### For new checks and feature suggestions - [x] https://www.shellcheck.net/ (i.e. the latest commit) currently gives no useful warnings about this - [x] I searched through https://github.com/koalaman/shellcheck/issues and didn't find...
#### For bugs - Rule Id (if any, e.g. SC1000): [SC2296](https://www.shellcheck.net/wiki/SC2296) - My shellcheck version (`shellcheck --version` or "online"): online - [x] The rule's wiki page does not already cover...
Prepending statement with a `!` operator is a common way to avoid errexit on a particular command. SC2251 currently correctly warns that the the return code might not be checked....
#### For bugs - Rule Id: SC2115 - My shellcheck version: 0.10.0 - [x] The rule's wiki page does not already cover this (e.g. https://shellcheck.net/wiki/SC2115) - [x] I tried on...
#### For new checks and feature suggestions - [x] https://www.shellcheck.net/ (i.e. the latest commit) currently gives no useful warnings about this - [x] I searched through https://github.com/koalaman/shellcheck/issues and didn't find...
Shellcheck doesn't account for namerefs properly. #### For bugs - Version: 4.5 and online - I tried on shellcheck.net and verified that this is still a problem on the latest...