Use ShellCheck to validate POSIX spec
DLopezJr opened this issue · comments
David Lopez Jr. commented
I suggest taking a look into shellcheck.
It is currently the most widely used static analyzer for shell code. It supports the POSIX spec whenever a #!/bin/sh she-bang is used. Some sort of tests with this would provide some extremely robust and compatibility shell output code.
James Campbell commented
This is a great suggestion, I've written a Volcano script build_examples
which builds all of our example code and runs it via shellcheck
.
Wouldn't take much work to wrap this into a Github Action as a next step but this has already given a lot of great feedback. We can considered this closed.