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,