jcampbell05 / volcano

A programming language which compiles to shell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use ShellCheck to validate POSIX spec

DLopezJr opened this issue · comments

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.

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.