Created
July 18, 2019 21:56
-
-
Save akutz/30b304f5c0bb8a4dc851c93e2d0b7c97 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker run -t --rm -v "$(pwd)":/-:ro -w /- gcr.io/cluster-api-provider-vsphere/extra/shellcheck | |
In ./hack/build-gitbook.sh line 20: | |
export KUBE_ROOT=$(dirname "${BASH_SOURCE}")/.. | |
^-------^ SC2155: Declare and assign separately to avoid masking return values. | |
^------------^ SC2128: Expanding an array without an index only gives the first element. | |
In ./hack/build-gitbook.sh line 22: | |
cd $KUBE_ROOT | |
^--------^ SC2086: Double quote to prevent globbing and word splitting. | |
Did you mean: | |
cd "$KUBE_ROOT" | |
In ./hack/update-vendor.sh line 22: | |
source "${KUBE_ROOT}/hack/ensure-go.sh" | |
^-- SC1090: Can't follow non-constant source. Use a directive to specify location. | |
In ./hack/verify-bazel.sh line 20: | |
if ! which bazel &>/dev/null; then echo "Bazel not available, skipping validation"; exit; fi | |
^---^ SC2230: which is non-standard. Use builtin 'command -v' instead. | |
In ./hack/verify-clientset.sh line 22: | |
source "${REPO_ROOT}/hack/ensure-go.sh" | |
^-- SC1090: Can't follow non-constant source. Use a directive to specify location. | |
In ./hack/verify-clientset.sh line 27: | |
export GOPATH=$(go env GOPATH) | |
^----^ SC2155: Declare and assign separately to avoid masking return values. | |
In ./hack/pin-dependency.sh line 22: | |
source "${KUBE_ROOT}/hack/lib/init.sh" | |
^-----------------------------^ SC1090: Can't follow non-constant source. Use a directive to specify location. | |
In ./scripts/ci-is-vendor-in-sync.sh line 22: | |
source "${REPO_ROOT}/hack/ensure-go.sh" | |
^-- SC1090: Can't follow non-constant source. Use a directive to specify location. | |
In ./scripts/ci-test.sh line 22: | |
source "${REPO_ROOT}/hack/ensure-go.sh" | |
^-- SC1090: Can't follow non-constant source. Use a directive to specify location. | |
For more information: | |
https://www.shellcheck.net/wiki/SC1090 -- Can't follow non-constant source.... | |
https://www.shellcheck.net/wiki/SC2128 -- Expanding an array without an ind... | |
https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment