Does anyone know of a Bash linter for the Google shell style guide? I have been using shellcheck as my linter with flycheck but it doesn't conform to this standard.
1 Answer
You can use shfmt to format shell/bash code. It is configurable, so you should be able to get the Google style with something like shfmt -i 2 -ci
.
It's a standalone tool, but it should be easy enough to integrate with editors and IDEs. There are plugins for vim, atom, and vscode already.
flycheck
? If the former, it's not really an Emacs question, and we should migrate the post to a sister site.