ShellCheck v0.3.0 Release Notes
Release Date: 2014-01-19 // over 10 years ago-
โ Added
- A man page (thanks Dridi!)
- GCC compatible error reporting (
shellcheck -f gcc
) - ๐
CheckStyle compatible XML error reporting (
shellcheck -f checkstyle
) - โ Error codes for each warning, e.g. SC1234
- ๐ Allow disabling warnings with
# shellcheck disable=SC1234
- ๐ Allow disabling warnings with
--exclude
- SC2103: Suggest using subshells over
cd foo; bar; cd ..
- SC2102: Warn about duplicates in char ranges, e.g.
[10-15]
- SC2101: Warn about named classes not inside a char range, e.g.
[:digit:]
- SC2100/SC2099: Warn about bad math expressions like
i=i+5
- SC2098/SC2097: Warn about
foo=bar echo $foo
- SC2095: Warn when using
ssh
/ffmpeg
inwhile read
loops - ๐ Better warnings for missing here doc tokens
๐ Fixed
- Don't warn when single quoting variables with
ssh/perl/eval
${!var}
is now counted as a variable reference
โ Removed
- Suggestions about using parameter expansion over basename
- The
jsoncheck
binary. Useshellcheck -f json
instead.