ShellCheck: a shell script static analysis tool. It gives warnings and suggestions for bash/sh shell scripts.

I discovered it some time ago and I found it very useful to validate my shell scripts.

You can learn more about it in the official repository .