Update shellcheck version (0.7.1 -> 0.7.2) and fix findings

This commit is contained in:
Oscar Utbult 2022-11-01 20:13:18 +01:00
parent 9b72f20156
commit 421f142ffc
3 changed files with 4 additions and 3 deletions

View File

@ -140,6 +140,7 @@ eval "testargs=(${KUBE_TEST_ARGS:-})"
# Used to filter verbose test output.
go_test_grep_pattern=".*"
goflags=()
# The junit report tool needs full test case information to produce a
# meaningful report.
if [[ -n "${KUBE_JUNIT_REPORT_DIR}" ]] ; then

View File

@ -25,6 +25,7 @@ cd "${KUBE_ROOT}"
# Filter out arguments that start with "-" and move them to goflags.
targets=()
goflags=()
for arg; do
if [[ "${arg}" == -* ]]; then
goflags+=("${arg}")

View File

@ -30,9 +30,8 @@ DOCKER="${DOCKER:-docker}"
# required version for this script, if not installed on the host we will
# use the official docker image instead. keep this in sync with SHELLCHECK_IMAGE
SHELLCHECK_VERSION="0.7.1"
# upstream shellcheck latest stable image as of October 23rd, 2019
SHELLCHECK_IMAGE="docker.io/koalaman/shellcheck-alpine:v0.7.1@sha256:d6147f30864ddb7c9cf983fc277d345bc315e798e309ddf70062b194843ee252"
SHELLCHECK_VERSION="0.7.2"
SHELLCHECK_IMAGE="docker.io/koalaman/shellcheck-alpine:v0.7.2@sha256:ce6fd9cc808a47d1d121ba92c203ecc02e8ed78e0e4c412f7fca54c2e954526d"
# disabled lints
disabled=(