Bump golangci/golangci-lint-action from 6.5.2 to 7.0.0 (#13116)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marco Ebert <marco_ebert@icloud.com>
This commit is contained in:
parent
9667f2858a
commit
acd94d9d22
|
|
@ -28,6 +28,6 @@ jobs:
|
||||||
check-latest: true
|
check-latest: true
|
||||||
|
|
||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2
|
uses: golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # v7.0.0
|
||||||
with:
|
with:
|
||||||
only-new-issues: true
|
only-new-issues: true
|
||||||
|
|
|
||||||
110
.golangci.yml
110
.golangci.yml
|
|
@ -1,15 +1,8 @@
|
||||||
|
version: "2"
|
||||||
run:
|
run:
|
||||||
timeout: 10m
|
|
||||||
allow-parallel-runners: true
|
allow-parallel-runners: true
|
||||||
|
|
||||||
issues:
|
|
||||||
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
|
|
||||||
max-issues-per-linter: 0
|
|
||||||
|
|
||||||
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
|
|
||||||
max-same-issues: 0
|
|
||||||
linters:
|
linters:
|
||||||
disable-all: true
|
default: none
|
||||||
enable:
|
enable:
|
||||||
- asasalint
|
- asasalint
|
||||||
- asciicheck
|
- asciicheck
|
||||||
|
|
@ -29,15 +22,11 @@ linters:
|
||||||
- gocritic
|
- gocritic
|
||||||
- gocyclo
|
- gocyclo
|
||||||
- godox
|
- godox
|
||||||
- gofmt
|
|
||||||
- gofumpt
|
|
||||||
- goheader
|
- goheader
|
||||||
- goimports
|
|
||||||
- gomoddirectives
|
- gomoddirectives
|
||||||
- gomodguard
|
- gomodguard
|
||||||
- goprintffuncname
|
- goprintffuncname
|
||||||
- gosec
|
- gosec
|
||||||
- gosimple
|
|
||||||
- govet
|
- govet
|
||||||
- grouper
|
- grouper
|
||||||
- importas
|
- importas
|
||||||
|
|
@ -57,65 +46,18 @@ linters:
|
||||||
- rowserrcheck
|
- rowserrcheck
|
||||||
- sqlclosecheck
|
- sqlclosecheck
|
||||||
- staticcheck
|
- staticcheck
|
||||||
- stylecheck
|
|
||||||
- tenv
|
|
||||||
- testableexamples
|
- testableexamples
|
||||||
- typecheck
|
|
||||||
- unconvert
|
- unconvert
|
||||||
- unparam
|
- unparam
|
||||||
- unused
|
- unused
|
||||||
- usestdlibvars
|
- usestdlibvars
|
||||||
- whitespace
|
- whitespace
|
||||||
# - containedctx
|
settings:
|
||||||
# - cyclop
|
|
||||||
# - dupword
|
|
||||||
# - errorlint
|
|
||||||
# - exhaustive
|
|
||||||
# - exhaustruct
|
|
||||||
# - exportloopref
|
|
||||||
# - forbidigo
|
|
||||||
# - forcetypeassert
|
|
||||||
# - funlen
|
|
||||||
# - gci
|
|
||||||
# - gochecknoglobals
|
|
||||||
# - gochecknoinits
|
|
||||||
# - gocognit
|
|
||||||
# - godot
|
|
||||||
# - goerr113
|
|
||||||
# - gomnd
|
|
||||||
# - interfacebloat
|
|
||||||
# - ireturn
|
|
||||||
# - lll
|
|
||||||
# - maintidx
|
|
||||||
# - nestif
|
|
||||||
# - nilerr
|
|
||||||
# - nilnil
|
|
||||||
# - nlreturn
|
|
||||||
# - noctx
|
|
||||||
# - nonamedreturns
|
|
||||||
# - paralleltest
|
|
||||||
# - tagliatelle
|
|
||||||
# - testpackage
|
|
||||||
# - thelper
|
|
||||||
# - tparallel
|
|
||||||
# - varnamelen
|
|
||||||
# - wastedassign
|
|
||||||
# - wrapcheck
|
|
||||||
# - wsl
|
|
||||||
linters-settings:
|
|
||||||
gocyclo:
|
|
||||||
min-complexity: 40
|
|
||||||
godox:
|
|
||||||
keywords:
|
|
||||||
- BUG
|
|
||||||
- FIXME
|
|
||||||
- HACK
|
|
||||||
errcheck:
|
errcheck:
|
||||||
check-type-assertions: true
|
check-type-assertions: true
|
||||||
check-blank: true
|
check-blank: true
|
||||||
gocritic:
|
gocritic:
|
||||||
enabled-checks:
|
enabled-checks:
|
||||||
# Diagnostic
|
|
||||||
- appendAssign
|
- appendAssign
|
||||||
- argOrder
|
- argOrder
|
||||||
- badCall
|
- badCall
|
||||||
|
|
@ -155,8 +97,6 @@ linters-settings:
|
||||||
- truncateCmp
|
- truncateCmp
|
||||||
- unnecessaryDefer
|
- unnecessaryDefer
|
||||||
- weakCond
|
- weakCond
|
||||||
|
|
||||||
# Performance
|
|
||||||
- appendCombine
|
- appendCombine
|
||||||
- equalFold
|
- equalFold
|
||||||
- hugeParam
|
- hugeParam
|
||||||
|
|
@ -169,8 +109,6 @@ linters-settings:
|
||||||
- rangeValCopy
|
- rangeValCopy
|
||||||
- sliceClear
|
- sliceClear
|
||||||
- stringXbytes
|
- stringXbytes
|
||||||
|
|
||||||
# Style
|
|
||||||
- assignOp
|
- assignOp
|
||||||
- boolExprSimplify
|
- boolExprSimplify
|
||||||
- captLocal
|
- captLocal
|
||||||
|
|
@ -213,8 +151,6 @@ linters-settings:
|
||||||
- whyNoLint
|
- whyNoLint
|
||||||
- wrapperFunc
|
- wrapperFunc
|
||||||
- yodaStyleExpr
|
- yodaStyleExpr
|
||||||
|
|
||||||
# Opinionated
|
|
||||||
- builtinShadow
|
- builtinShadow
|
||||||
- importShadow
|
- importShadow
|
||||||
- initClause
|
- initClause
|
||||||
|
|
@ -224,13 +160,39 @@ linters-settings:
|
||||||
- typeUnparen
|
- typeUnparen
|
||||||
- unnamedResult
|
- unnamedResult
|
||||||
- unnecessaryBlock
|
- unnecessaryBlock
|
||||||
|
gocyclo:
|
||||||
|
min-complexity: 40
|
||||||
|
godox:
|
||||||
|
keywords:
|
||||||
|
- BUG
|
||||||
|
- FIXME
|
||||||
|
- HACK
|
||||||
nolintlint:
|
nolintlint:
|
||||||
# Enable to ensure that nolint directives are all used. Default is true.
|
|
||||||
allow-unused: false
|
|
||||||
# Exclude following linters from requiring an explanation. Default is [].
|
|
||||||
allow-no-explanation: []
|
|
||||||
# Enable to require an explanation of nonzero length after each nolint directive. Default is false.
|
|
||||||
# TODO(lint): Enforce explanations for `nolint` directives
|
|
||||||
require-explanation: false
|
require-explanation: false
|
||||||
# Enable to require nolint directives to mention the specific linter being suppressed. Default is false.
|
|
||||||
require-specific: true
|
require-specific: true
|
||||||
|
allow-unused: false
|
||||||
|
exclusions:
|
||||||
|
generated: lax
|
||||||
|
presets:
|
||||||
|
- comments
|
||||||
|
- common-false-positives
|
||||||
|
- legacy
|
||||||
|
- std-error-handling
|
||||||
|
paths:
|
||||||
|
- third_party$
|
||||||
|
- builtin$
|
||||||
|
- examples$
|
||||||
|
issues:
|
||||||
|
max-issues-per-linter: 0
|
||||||
|
max-same-issues: 0
|
||||||
|
formatters:
|
||||||
|
enable:
|
||||||
|
- gofmt
|
||||||
|
- gofumpt
|
||||||
|
- goimports
|
||||||
|
exclusions:
|
||||||
|
generated: lax
|
||||||
|
paths:
|
||||||
|
- third_party$
|
||||||
|
- builtin$
|
||||||
|
- examples$
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue