-
Notifications
You must be signed in to change notification settings - Fork 760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: enable shellcheck & shfmt for asdf entrypoints #1397
Comments
May I jump in and resolve this? I see you have marked the TODOs as yours and I wasn't sure if you have already started the fixes |
@hyperupcall Before we make code changes, I would like to get an agreement with @Stratus3D on this aspect from the OP:
|
Hi @jthegedus, sorry for the late reply here. I think It looks like that is the approach you all have taken so it seems good to me 👍 Thanks everyone! |
Describe the Bug
#1391 updated the
scripts/*.bash
to add a specific Shellcheck & shfmt commands to validate ourasdf.sh
andlib/*.sh
files. This code was previously part of a single check, but was probably misclassifying the files as Bash, when they're seemingly intended to be POSIX.The updated checking was introduced but disabled. We should:
asdf.sh
orlib/*.sh
to be POSIX or BashSteps to Reproduce
Uncomment the code in https://github.com/asdf-vm/asdf/blob/master/scripts/shellcheck.bash
Uncomment the code in https://github.com/asdf-vm/asdf/blob/master/scripts/shfmt.bash
Uncomment the code in https://github.com/asdf-vm/asdf/blob/master/scripts/format.bash
Expected Behaviour
CI will run this script and reveal a bunch of issues to be fixed.
Actual Behaviour
These are currently skipped.
Environment
asdf plugins affected (if relevant)
NA
The text was updated successfully, but these errors were encountered: