Re:Better bash in 15 minutes
by curiousbiped on Wednesday April 16, 2014 @06:54PM
(#7601031)
Try out shellcheck - there's an online checker at http://www.shellcheck.net/, and if you like it, the source for it is on github at https://github.com/koalaman/shellcheck.
Googling bashlint, shlint turns up some discussion (bash -n, ksh -n, zsh -n, some github projects), but I doubt they cover this article's specifics - though most (all?) of it could be automatically checked. I think some could be automatically added (e.g. set -o nounset) - perhaps a bash-subset (or coffeescript-style language) possible...