4 ms·
I like the approach that ShellCheck uses for its verbose error messages. Every error message is identified by an easily-googleable error ID that is not translat
by ufo 6y ago
I like the approach that ShellCheck uses for its verbose error messages. Every error message is identified by an easily-googleable error ID that is not translated and there is a link to the shellcheck wiki where you can find an in-depth explanation of the error and possible ways to fix it.
For example, a typical run of shellcheck might look something like this:
~/test> shellcheck blah.sh
In blah.sh line 2:
echo $1
^-- SC2086: Double quote to prevent globbing and word splitting.
Did you mean:
echo "$1"
For more information:
https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
https://github.com/koalaman/shellcheck/ https://github.com/koalaman/shellcheck/