From a534efd1075580699a09bc479c95000a925e7cbe Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 12 May 2024 11:08:26 +0200 Subject: [PATCH] ci: fix golangci-lint deprecations --- .golangci.yml | 5 ++--- Makefile | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 5de88c8..319c1cb 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -23,7 +23,6 @@ linters: - errchkjson - errname - errorlint - - execinquery - exhaustive - exportloopref - forcetypeassert @@ -37,12 +36,12 @@ linters: - gocyclo - godot - godox - - goerr113 + - err113 - gofmt - gofumpt - goheader - goimports - - gomnd + - mnd - gomoddirectives - gomodguard - goprintffuncname diff --git a/Makefile b/Makefile index 2e58f75..6231aa6 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ IMPORT := github.com/thegeeklab/$(EXECUTABLE) GO ?= go CWD ?= $(shell pwd) -PACKAGES ?= $(shell go list ./... | grep -Ev '/mocks$$') +PACKAGES ?= $(shell go list ./...) SOURCES ?= $(shell find . -name "*.go" -type f) GOFUMPT_PACKAGE ?= mvdan.cc/gofumpt@$(GOFUMPT_PACKAGE_VERSION)