shellcheck
shellcheck copied to clipboard
ShellCheck, a static analysis tool for shell scripts
#### For new checks and feature suggestions - [ ] 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...
#### For bugs - Rule Id (if any, e.g. SC1000): none - My shellcheck version (`shellcheck --version` or "online"): 0.7.2 - [ ] The rule's wiki page does not already...
- [x] 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 anything related #### Here's a snippet or...
#### For bugs - Rule SC2154 - Version online - [X] I tried on shellcheck.net and verified that this is still a problem on the latest commit #### Here's a...
The [SC2012](https://github.com/koalaman/shellcheck/wiki/SC2012) is perfectly fine if a filename could contain a control character, but in the following example this isn't possible as it allows only alphanumeric characters: ``` most_recent_syslog=$(ls -t...
#### For new checks and feature suggestions - [x] 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: `SC2034` - My shellcheck version: `0.7.0` - [X] The rule's wiki page does not already cover this (see https://shellcheck.net/wiki/https://github.com/koalaman/shellcheck/wiki/SC2034) - [X] I tried on...
#### For bugs - Rule Id (if any, e.g. SC1000): `SC2154` - My shellcheck version (`shellcheck --version` or "online"): `version: 0.4.5` - [X] I tried on shellcheck.net and verified that...
Given a function defined in a sourced file that has optional arguments, shellcheck treats it as if it's a mistake to not pass any arguments. Minimal reproducible setup: ``` $...
#### 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...