shellcheck
shellcheck copied to clipboard
ShellCheck, a static analysis tool for shell scripts
#### For bugs - Rule Id (if any, e.g. SC1000): SC2154, SC2034 and SC2209 - My shellcheck version (`shellcheck --version` or "online"): ``` shellcheck --version ShellCheck - shell script analysis...
#### 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 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): SC2028 - My shellcheck version (`shellcheck --version` or 'online'): online - [x] I tried on shellcheck.net and verified that this...
#### For bugs - Rule Id (if any, e.g. SC1000): **SC1091** - My shellcheck version (`shellcheck --version` or "online"): **0.8.0** - [x] The rule's wiki page does not already cover...
AFAIU currently the only one way to identify shellcheck errors are their numbers. My suggestion is to add human-readable and human-understandable names too. Rationale: 1. While reading the code, you...
#### For bugs - Rule Id (if any, e.g. SC1000): SC3037 - My shellcheck version (`shellcheck --version` or "online"): 0.7.2 - [x] The rule's wiki page does not already cover...
#### For bugs - Rule Id: SC2181 - My shellcheck version: 0.8.0 - [x] The rule's wiki page does not already cover this - [x] I tried on https://www.shellcheck.net/ and...
#### For bugs - Rule Id (if any, e.g. SC1000): SC2291 - My shellcheck version (`shellcheck --version` or "online"): 0.19.2 (from vscode) - [x] The rule's wiki page does not...
We have a series of scripts that operate on a set of shared variables that are created by the top-level script. The secondary scripts use these variables without declaring them...