diff --git a/.golangci.yml b/.golangci.yml index 9f545dc..c1e5685 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -6,10 +6,10 @@ linters: - misspell - ineffassign - typecheck - - varcheck + # - varcheck - unused - - structcheck - - deadcode + # - structcheck + # - deadcode - gosimple - goimports - errcheck @@ -18,7 +18,8 @@ linters: - gosec - asciicheck - bodyclose - - exportloopref + # - exportloopref + - copyloopvar - rowserrcheck - unconvert - makezero @@ -38,3 +39,6 @@ issues: - gosec - rowserrcheck - makezero + - linters: + - gosec + text: "G115:" diff --git a/Makefile b/Makefile index af1a911..5a41285 100644 --- a/Makefile +++ b/Makefile @@ -48,4 +48,4 @@ lint: tools/bin/golangci-lint GO111MODULE=on tools/bin/golangci-lint run -v $$($(PACKAGE_DIRECTORIES)) --config .golangci.yml tools/bin/golangci-lint: - curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b ./tools/bin v1.55.2 + curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b ./tools/bin v1.61.0 diff --git a/go.mod b/go.mod index 84081df..e773b9a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/pingcap/ng-monitoring -go 1.21 +go 1.23 require ( github.com/BurntSushi/toml v1.3.2