Skip to content

Commit

Permalink
update golangci-lint version
Browse files Browse the repository at this point in the history
  • Loading branch information
songjiaxun committed Sep 11, 2023
1 parent 45ad3d6 commit d36e9be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions hack/verify-golint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set -o errexit
set -o nounset
set -o pipefail

TOOL_VERSION="v1.52.2"
TOOL_VERSION="v1.54.2"

export PATH=$PATH:$(go env GOPATH)/bin
go install "github.com/golangci/golangci-lint/cmd/golangci-lint@${TOOL_VERSION}"
Expand All @@ -31,7 +31,7 @@ golangci-lint run --no-config --deadline=10m --sort-results \
--fix \
--enable-all \
--max-same-issues 100 \
--disable maligned,varcheck,nosnakecase,golint,scopelint,interfacer,deadcode,ifshort,structcheck,exhaustivestruct,exhaustruct,gomnd,lll,gochecknoglobals,funlen,varnamelen,wsl,testpackage,wrapcheck,goerr113,ireturn,gocyclo,cyclop,godox,gocognit,nestif,gomoddirectives,maintidx \
--disable maligned,varcheck,nosnakecase,golint,scopelint,interfacer,deadcode,ifshort,structcheck,exhaustivestruct,exhaustruct,gomnd,lll,gochecknoglobals,funlen,varnamelen,wsl,testpackage,wrapcheck,goerr113,ireturn,gocyclo,cyclop,godox,gocognit,nestif,gomoddirectives,maintidx,depguard \
--go 1.21.1 # the builder version

echo "Congratulations! Lint check completed for all Go source files."
6 changes: 3 additions & 3 deletions test/e2e/testsuites/performance.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"io"
"os"
"os/exec"

Expand Down Expand Up @@ -116,7 +116,7 @@ func (t *gcsFuseCSIPerformanceTestSuite) DefineTests(driver storageframework.Tes
framework.Failf("Failed to open the fio output file %q: %v", outputPath, err)
}

byteValue, err := ioutil.ReadAll(jsonFile)
byteValue, err := io.ReadAll(jsonFile)
if err != nil {
framework.Failf("Failed to read the fio output file %q: %v", outputPath, err)
}
Expand Down Expand Up @@ -150,7 +150,7 @@ func (t *gcsFuseCSIPerformanceTestSuite) DefineTests(driver storageframework.Tes
framework.Failf("Failed to open the threshold file %q: %v", thresholdFile, err)
}

byteValue, err := ioutil.ReadAll(jsonFile)
byteValue, err := io.ReadAll(jsonFile)
if err != nil {
framework.Failf("Failed to read the threshold file %q: %v", thresholdFile, err)
}
Expand Down

0 comments on commit d36e9be

Please sign in to comment.