-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Apply shellcheck to all vscodium shell scripts #1572
Conversation
I apologize, I made a note and forgot to come back to it. I found the variable ~/git/vscodium $ grep -rn "PRODUCT_SKU"
build/windows/msi/build.sh:14: PRODUCT_SKU="vscodium-insiders"
build/windows/msi/build.sh:21: PRODUCT_SKU="vscodium" |
I'm not certain the failed check is related to changes I've made. The workflow is attempting to download |
The variable I've re-running the failed action because it can failed at that step due to network issue (I think) from time to time... |
Yes, and I'll remove my erroneous "ignore" as well. |
The action have passed. |
Ok, I've made the other changes. Do you want me to commit them now? |
Yes, you can. |
LGTM! Thank you for the PR! |
All shell scripts within the
VSCodium
repository's now passshellcheck
.true
( Unclear functions related to Shellcheck errors #1570 ).getopts
but not handled by case statement https://www.shellcheck.net/wiki/SC2213$( command )
with spaces) (https://www.shellcheck.net/wiki/SC2006).cat
(https://www.shellcheck.net/wiki/SC2002).-r
toread
commands (https://www.shellcheck.net/wiki/SC2162).Special
shellcheck
considerations:shellcheck
recommends many style changes for both readability and consistency ( both subjective ). Where applicable I've ignored these messages to conform with the style preference of the project. One example is: https://www.shellcheck.net/wiki/SC2129shellcheck
notes when it is unable to follow variables or files when sourced. When applicable, I ignored this message (https://www.shellcheck.net/wiki/SC1091) with a directive (https://github.com/koalaman/shellcheck/wiki/directive).shellcheck
disable messages are a value add, because they cut down on the noise when searching for actual errors.Other small changes:
> /dev/null 2>&1
to simply&> /dev/null
. I found it both ways and chose the latter.if
statements andfor
loops.#!/usr/bin/env bash
.[[ ]]
.