diff --git a/hack/update-gofmt.sh b/hack/update-gofmt.sh deleted file mode 100755 index 8c805bf50..000000000 --- a/hack/update-gofmt.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -set -o errexit -set -o nounset -set -o pipefail - -find_files() { - find . -not \( \ - \( \ - -wholename '*/vendor/*' \ - \) -prune \ - \) -name '*.go' -} - -find_files | xargs gofmt -w -s diff --git a/hack/verify-gofmt.sh b/hack/verify-gofmt.sh deleted file mode 100755 index 6b57fc596..000000000 --- a/hack/verify-gofmt.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -set -o errexit -set -o nounset -set -o pipefail - -find_files() { - find . -not \( \ - \( \ - -wholename '*/vendor/*' \ - \) -prune \ - \) -name '*.go' -} - -bad_files=$(find_files | xargs gofmt -d -s 2>&1) -if [[ -n "${bad_files}" ]]; then - echo "${bad_files}" >&2 - echo >&2 - echo "Run ./hack/update-gofmt.sh" >&2 - exit 1 -fi diff --git a/hack/verify-golint.sh b/hack/verify-golint.sh deleted file mode 100755 index 82ce5fa34..000000000 --- a/hack/verify-golint.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -set -o errexit -set -o nounset -set -o pipefail - -find_files() { - find . -not \( \ - \( \ - -wholename '*/vendor/*' \ - \) -prune \ - \) -name '*.go' -} - -bad_files=$(find_files | xargs -I@ bash -c "golint @") -if [[ -n "${bad_files}" ]]; then - echo "${bad_files}" - exit 1 -fi diff --git a/hack/verify-govet.sh b/hack/verify-govet.sh deleted file mode 100755 index 1f5f881ef..000000000 --- a/hack/verify-govet.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -set -x - -go vet ./pkg/... -go vet ./cmd/... -go vet -tags=test ./test/...