ShellCheck

A linter for shell scripts that reports quoting mistakes, portability problems and common bugs, each with a numbered code.

In more detail

Each finding names the file, line, severity level and a code, and every code has a wiki page explaining the fix. Levels run error, warning, info and style, and --severity=warning hides the lower two. With --shell=sh, or a sh shebang, it also reports features that plain sh lacks.

Examples

shellcheck script.sh
shellcheck --severity=warning script.sh
shellcheck release.sh

Related terms

Taught in

References

Certification courses