From 6416880ce872387a52bf2473ff0671267c2a4d35 Mon Sep 17 00:00:00 2001 From: David Porter Date: Sat, 25 Feb 2023 01:54:26 -0800 Subject: [PATCH] ci: Update golang ci-lint to v1.51.2 Also, remove the deprecated linters from the .golangci.yml config. Signed-off-by: David Porter --- .golangci.yml | 6 ------ Makefile | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 2bd2b8f0a6..ebfa63d553 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -3,8 +3,6 @@ run: linters-settings: govet: enable-all: true - golint: - min-confidence: 0 gofmt: simplify: true goimports: @@ -17,12 +15,8 @@ linters: - staticcheck - unused - gosimple - - structcheck - - varcheck - ineffassign - - deadcode - typecheck - - golint - gofmt - goimports issues: diff --git a/Makefile b/Makefile index 45cbff5ec6..d5fb4abdf8 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ # limitations under the License. GO := go -GOLANGCI_VER := v1.48.0 +GOLANGCI_VER := v1.51.2 GO_TEST ?= $(GO) test $(or $(GO_FLAGS),-race) arch ?= $(shell go env GOARCH)