[actions] Add shellcheck workflow#2351
Conversation
Co-authored-by: Alex Aubuchon <alex@aub.dev> Co-authored-by: Jordan Harband <ljharb@gmail.com>
|
Hmm looking at the list of checks created the naming looks a little messy, let me know if you have any preferences with those! Also, maybe I should make checking |
|
Yes, it should be a separate job in the matrix. It'd be ideal to find a way to get the latest shellcheck; i rely on the things the latest version checks. |
acf28e4 to
f7f0e37
Compare
|
k, fixed the matrix, the only thing is that this is v0.4.6, and shellcheck's up to v0.7.1. is |
12c1606 to
57ffe2a
Compare
|
Brew does work! Thanks for the matrix changes too; I wouldn't have thought of doing it that way :) I removed the ignore SC1001 declaration as well, now that we have the most recent version of shellcheck. |
57ffe2a to
3abb981
Compare
This adds a github workflow that runs shellcheck on
nvm.shandinstall.sh.nvm.shis tested with each shell in[bash, sh, dash, ksh]andinstall.shis tested with justbash. I think submitting this PR should run the workflow, but just in case, here is an example of this change running on my fork.Unfortunately shellcheck does not support zsh, which is why it's omitted from the matrix.
I ignored SC1001 in nvm.sh because there are three instances where
\command ...is used (i'm guessing) to suppress aliases. More recent versions of shellcheck automatically ignore these instances, but not the older version available on the ubuntu-based github runners. Alternatively, I could ignore the specific lines in nvm.sh rather than globally ignoring SC1001, or I could figure out a way to manually install a more recent version of shellcheck. Let me know!