mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-09 14:14:16 -05:00
[PR #1572] [MERGED] Apply shellcheck to all vscodium shell scripts #1764
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/VSCodium/vscodium/pull/1572
Author: @zpiatt
Created: 7/21/2023
Status: ✅ Merged
Merged: 7/21/2023
Merged by: @daiyam
Base:
master← Head:shellcheck-applied-01📝 Commits (2)
3be84acapply shellcheck; standardize style512cfc8make requested changes; update api curl📊 Changes
14 files changed (+84 additions, -79 deletions)
View changed files
📝
build/build.sh(+7 -3)📝
build/build_docker.sh(+6 -3)📝
build/linux/appimage/build.sh(+4 -4)📝
build/update_api.sh(+11 -8)📝
build/update_patches.sh(+10 -10)📝
build/windows/msi/build-updates-disabled.sh(+3 -4)📝
build/windows/msi/build.sh(+1 -3)📝
build/windows/rtf/make.sh(+1 -1)📝
icons/build_icons.sh(+32 -34)📝
stores/snapcraft/check_version.sh(+4 -4)📝
stores/winget/check_version.sh(+1 -1)📝
update_version.sh(+1 -1)📝
utils.sh(+2 -2)📝
version.sh(+1 -1)📄 Description
All shell scripts within the
VSCodiumrepository's now passshellcheck.true( https://github.com/VSCodium/vscodium/issues/1570 ).getoptsbut 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).-rtoreadcommands (https://www.shellcheck.net/wiki/SC2162).Special
shellcheckconsiderations:shellcheckrecommends 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/SC2129shellchecknotes 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).shellcheckdisable messages are a value add, because they cut down on the noise when searching for actual errors.Other small changes:
> /dev/null 2>&1to simply&> /dev/null. I found it both ways and chose the latter.ifstatements andforloops.#!/usr/bin/env bash.[[ ]].🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.