From 21819254ddb7d48f3483cadcecb20a63d1db8cd7 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Wed, 15 Jun 2022 19:50:39 +0200 Subject: golangci-lint: update to v1.46.2 Update to the latest golangci-lint version. v1.46 added new linters. I disabled nonamedreturns and exhaustruct since they enforce a certain code style and using them would require big changes to the code base. The nosprintfhostport is new and I fixed one problem in the tests. While the test itself is fine because it uses ipv4 only the linter still looks good because the sprintf use will fail for ipv6 addresses. Signed-off-by: Paul Holzinger --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3810459b0..38ea7a256 100644 --- a/Makefile +++ b/Makefile @@ -829,7 +829,7 @@ install.tools: .install.ginkgo .install.golangci-lint .install.bats ## Install n .PHONY: .install.golangci-lint .install.golangci-lint: - VERSION=1.45.2 ./hack/install_golangci.sh + VERSION=1.46.2 ./hack/install_golangci.sh .PHONY: .install.md2man .install.md2man: -- cgit v1.2.3-54-g00ecf