From 174d9ef5bb10280a8dda68ff07afc3e4cf4afb0c Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 12 May 2024 11:08:28 +0200 Subject: [PATCH] ci: fix golangci-lint deprecations --- .golangci.yml | 5 ++--- Makefile | 2 +- plugin/plugin.go | 2 +- 3 files changed, 4 insertions(+), 5 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 69e7729..9152b77 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) diff --git a/plugin/plugin.go b/plugin/plugin.go index f0caec1..4e4958e 100644 --- a/plugin/plugin.go +++ b/plugin/plugin.go @@ -211,7 +211,7 @@ func Flags(settings *Settings, category string) []cli.Flag { &cli.IntFlag{ Name: "max-concurrency", Usage: "customize number concurrent files to process", - //nolint:gomnd + //nolint:mnd Value: 100, EnvVars: []string{"PLUGIN_MAX_CONCURRENCY"}, Destination: &settings.MaxConcurrency,