Join GitHub today
Automatic syntax formatting for all shell scripts #110
shfmt seems to be the right one for the job. However, it does not seem to be commonly packaged in Linux distributions, and with that program, we would introduce another dependency to the static code analysis script, making it even harder to install everything to run it locally before submitting a PR (which is required to keep development enjoyable).
I guess I will use it personally for formatting, but not let Travis require this for now.
If someone thinks, that this is a bad idea, please speak up here in the thread. This is how I would do it: