mirror of
https://github.com/thegeeklab/wp-s3-action.git
synced 2024-11-22 01:00:40 +00:00
ci: fix golangci-lint deprecations
This commit is contained in:
parent
0752e23352
commit
174d9ef5bb
@ -23,7 +23,6 @@ linters:
|
|||||||
- errchkjson
|
- errchkjson
|
||||||
- errname
|
- errname
|
||||||
- errorlint
|
- errorlint
|
||||||
- execinquery
|
|
||||||
- exhaustive
|
- exhaustive
|
||||||
- exportloopref
|
- exportloopref
|
||||||
- forcetypeassert
|
- forcetypeassert
|
||||||
@ -37,12 +36,12 @@ linters:
|
|||||||
- gocyclo
|
- gocyclo
|
||||||
- godot
|
- godot
|
||||||
- godox
|
- godox
|
||||||
- goerr113
|
- err113
|
||||||
- gofmt
|
- gofmt
|
||||||
- gofumpt
|
- gofumpt
|
||||||
- goheader
|
- goheader
|
||||||
- goimports
|
- goimports
|
||||||
- gomnd
|
- mnd
|
||||||
- gomoddirectives
|
- gomoddirectives
|
||||||
- gomodguard
|
- gomodguard
|
||||||
- goprintffuncname
|
- goprintffuncname
|
||||||
|
2
Makefile
2
Makefile
@ -11,7 +11,7 @@ IMPORT := github.com/thegeeklab/$(EXECUTABLE)
|
|||||||
|
|
||||||
GO ?= go
|
GO ?= go
|
||||||
CWD ?= $(shell pwd)
|
CWD ?= $(shell pwd)
|
||||||
PACKAGES ?= $(shell go list ./... | grep -Ev 'mocks')
|
PACKAGES ?= $(shell go list ./...)
|
||||||
SOURCES ?= $(shell find . -name "*.go" -type f)
|
SOURCES ?= $(shell find . -name "*.go" -type f)
|
||||||
|
|
||||||
GOFUMPT_PACKAGE ?= mvdan.cc/gofumpt@$(GOFUMPT_PACKAGE_VERSION)
|
GOFUMPT_PACKAGE ?= mvdan.cc/gofumpt@$(GOFUMPT_PACKAGE_VERSION)
|
||||||
|
@ -211,7 +211,7 @@ func Flags(settings *Settings, category string) []cli.Flag {
|
|||||||
&cli.IntFlag{
|
&cli.IntFlag{
|
||||||
Name: "max-concurrency",
|
Name: "max-concurrency",
|
||||||
Usage: "customize number concurrent files to process",
|
Usage: "customize number concurrent files to process",
|
||||||
//nolint:gomnd
|
//nolint:mnd
|
||||||
Value: 100,
|
Value: 100,
|
||||||
EnvVars: []string{"PLUGIN_MAX_CONCURRENCY"},
|
EnvVars: []string{"PLUGIN_MAX_CONCURRENCY"},
|
||||||
Destination: &settings.MaxConcurrency,
|
Destination: &settings.MaxConcurrency,
|
||||||
|
Loading…
Reference in New Issue
Block a user