From 7c68708a5d9464b7124f8bd8bf1bcc504a636483 Mon Sep 17 00:00:00 2001 From: Maksim Nabokikh Date: Fri, 22 Dec 2023 11:13:21 +0100 Subject: [PATCH 1/2] Bump golangci-lint 1.55.2 Signed-off-by: Maksim Nabokikh --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2c4f5f5ff4..eceefca004 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ export GOBIN=$(PWD)/bin LD_FLAGS="-w -X main.version=$(VERSION)" # Dependency versions -GOLANGCI_VERSION = 1.52.0 +GOLANGCI_VERSION = 1.55.2 GOTESTSUM_VERSION ?= 1.9.0 PROTOC_VERSION = 21.12 From d2b1324a8d6cd249d0b26fddb87c53ea8f0cd839 Mon Sep 17 00:00:00 2001 From: Maksim Nabokikh Date: Fri, 22 Dec 2023 11:22:58 +0100 Subject: [PATCH 2/2] Fix depguard .golangci.yml Signed-off-by: Maksim Nabokikh --- .golangci.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 1bf6bcff50..7d631ed241 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -5,12 +5,11 @@ run: linters-settings: depguard: - list-type: blacklist - include-go-root: true - packages: - - io/ioutil - packages-with-error-message: - - io/ioutil: "The 'io/ioutil' package is deprecated. Use corresponding 'os' or 'io' functions instead." + rules: + deprecated: + deny: + - pkg: "io/ioutil" + desc: "The 'io/ioutil' package is deprecated. Use corresponding 'os' or 'io' functions instead." gci: local-prefixes: github.com/dexidp/dex goimports: