Obligatory in case anyone hasn't seen it:
https://www.shellcheck.net/
Works as a web app or local tool.
A good idea to double check using a text editor.
http://thejh.net/misc/website-terminal-copy-paste