From 6df83f01ee419917cf5e9eeb9a9c0cb21ee34b1d Mon Sep 17 00:00:00 2001 From: Kevin Joiner <10265309+KevinJoiner@users.noreply.github.com> Date: Mon, 22 Apr 2024 11:12:54 -0400 Subject: [PATCH] Update linter version --- .golangci.yml | 2 -- Makefile | 3 ++- cmd/clickhouse-container/main.go | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 5986c39..9c9a803 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -6,8 +6,6 @@ linters-settings: min-complexity: 15 goimports: local-prefixes: github.com/DIMO-Network/mnemonic - govet: - check-shadowing: true misspell: locale: US ignore-words: diff --git a/Makefile b/Makefile index 55053e1..25ffbb4 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ VERSION := $(shell git describe --tags || echo "v0.0.0") VER_CUT := $(shell echo $(VERSION) | cut -c2-) # Dependency versions -GOLANGCI_VERSION = v1.56.2 +GOLANGCI_VERSION = v1.57.2 build: @CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(ARCH) \ @@ -39,6 +39,7 @@ test: @go test ./... lint: + @golangci-lint version @golangci-lint run format: diff --git a/cmd/clickhouse-container/main.go b/cmd/clickhouse-container/main.go index ef640a7..7280ef1 100644 --- a/cmd/clickhouse-container/main.go +++ b/cmd/clickhouse-container/main.go @@ -34,7 +34,7 @@ func run(ctx context.Context) error { defer chcontainer.Terminate(ctx) if *migrate { - db, err := clickhouseinfra.GetClickhouseAsDB(ctx, chcontainer.ClickHouseContainer) //nolint: govet // false positive + db, err := clickhouseinfra.GetClickhouseAsDB(ctx, chcontainer.ClickHouseContainer) if err != nil { return fmt.Errorf("failed to get clickhouse db: %w", err) }