shellcheck
shellcheck copied to clipboard
ShellCheck, a static analysis tool for shell scripts
#### 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): SC2311 - My shellcheck version (`shellcheck --version` or "online"): online - [x] The rule's wiki page does not already cover...
- [ ] https://github.com/koalaman/shellcheck/releases/ currently doesn't provide checksums with releases
#### For new checks and feature suggestions - [x] https://www.shellcheck.net/ (i.e. the latest commit) currently gives no useful warnings about this (**not applicable**) - [x] I searched through https://github.com/koalaman/shellcheck/issues and...
#### For bugs - Rule Id: SC2143 - My shellcheck version: "online" - [ ] The rule's wiki page does not already cover this (e.g. https://shellcheck.net/wiki/SC2086) - [x] I tried...
``` echo "$FUNCNAME" ^-- SC2128: Expanding an array without an index only gives the first element. ``` `FUNCNAME` is special and it's fine that way
#### 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): SC1087 - My shellcheck version (`shellcheck --version` or "online"): 0.7.1 - [x] The rule's wiki page does not already cover...
#### For bugs - Rule Id (if any, e.g. SC1000): SC2248 and SC2250 - My shellcheck version (`shellcheck --version` or "online"): 0.7.0 - [X] The rule's wiki page does not...
#### For bugs - Rule Id (if any, e.g. SC1000): None - My shellcheck version (`shellcheck --version` or 'online'): `online` and ` 0.7.1` - [x] I tried on shellcheck.net and...