Skip to content

Commit

Permalink
Merge pull request #1603 from Zhupku/mengzezhu/glint160
Browse files Browse the repository at this point in the history
chore: update verify-golint.sh
  • Loading branch information
k8s-ci-robot authored Sep 18, 2024
2 parents d071197 + bdffed6 commit 6162d24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hack/verify-golint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ set -euo pipefail

if [[ -z "$(command -v golangci-lint)" ]]; then
echo "Cannot find golangci-lint. Installing golangci-lint..."
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.45.0
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.60.0
export PATH=$PATH:$(go env GOPATH)/bin
fi

echo "Verifying golint"

golangci-lint run --no-config --enable=golint --disable=typecheck --deadline=10m
golangci-lint run --no-config -E=gofmt,unused,ineffassign,revive,misspell,asciicheck,bodyclose,depguard,dogsled,durationcheck,errname,forbidigo -D=staticcheck --timeout=30m0s

echo "Congratulations! Lint check completed for all Go source files."
echo "Congratulations! Lint check completed for all Go source files."

0 comments on commit 6162d24

Please sign in to comment.