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
|
||||||
|
|
|
||||||
330
.golangci.yml
330
.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,180 +46,153 @@ 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
|
errcheck:
|
||||||
# - dupword
|
check-type-assertions: true
|
||||||
# - errorlint
|
check-blank: true
|
||||||
# - exhaustive
|
gocritic:
|
||||||
# - exhaustruct
|
enabled-checks:
|
||||||
# - exportloopref
|
- appendAssign
|
||||||
# - forbidigo
|
- argOrder
|
||||||
# - forcetypeassert
|
- badCall
|
||||||
# - funlen
|
- badCond
|
||||||
# - gci
|
- badLock
|
||||||
# - gochecknoglobals
|
- badRegexp
|
||||||
# - gochecknoinits
|
- badSorting
|
||||||
# - gocognit
|
- builtinShadowDecl
|
||||||
# - godot
|
- caseOrder
|
||||||
# - goerr113
|
- codegenComment
|
||||||
# - gomnd
|
- commentedOutCode
|
||||||
# - interfacebloat
|
- deferInLoop
|
||||||
# - ireturn
|
- deprecatedComment
|
||||||
# - lll
|
- dupArg
|
||||||
# - maintidx
|
- dupBranchBody
|
||||||
# - nestif
|
- dupCase
|
||||||
# - nilerr
|
- dupSubExpr
|
||||||
# - nilnil
|
- dynamicFmtString
|
||||||
# - nlreturn
|
- emptyDecl
|
||||||
# - noctx
|
- evalOrder
|
||||||
# - nonamedreturns
|
- exitAfterDefer
|
||||||
# - paralleltest
|
- externalErrorReassign
|
||||||
# - tagliatelle
|
- filepathJoin
|
||||||
# - testpackage
|
- flagDeref
|
||||||
# - thelper
|
- flagName
|
||||||
# - tparallel
|
- mapKey
|
||||||
# - varnamelen
|
- nilValReturn
|
||||||
# - wastedassign
|
- offBy1
|
||||||
# - wrapcheck
|
- regexpPattern
|
||||||
# - wsl
|
- returnAfterHttpError
|
||||||
linters-settings:
|
- sloppyReassign
|
||||||
gocyclo:
|
- sloppyTypeAssert
|
||||||
min-complexity: 40
|
- sortSlice
|
||||||
godox:
|
- sprintfQuotedString
|
||||||
keywords:
|
- sqlQuery
|
||||||
- BUG
|
- syncMapLoadAndDelete
|
||||||
- FIXME
|
- truncateCmp
|
||||||
- HACK
|
- unnecessaryDefer
|
||||||
errcheck:
|
- weakCond
|
||||||
check-type-assertions: true
|
- appendCombine
|
||||||
check-blank: true
|
- equalFold
|
||||||
gocritic:
|
- hugeParam
|
||||||
enabled-checks:
|
- indexAlloc
|
||||||
# Diagnostic
|
- preferDecodeRune
|
||||||
- appendAssign
|
- preferFprint
|
||||||
- argOrder
|
- preferStringWriter
|
||||||
- badCall
|
- preferWriteByte
|
||||||
- badCond
|
- rangeExprCopy
|
||||||
- badLock
|
- rangeValCopy
|
||||||
- badRegexp
|
- sliceClear
|
||||||
- badSorting
|
- stringXbytes
|
||||||
- builtinShadowDecl
|
- assignOp
|
||||||
- caseOrder
|
- boolExprSimplify
|
||||||
- codegenComment
|
- captLocal
|
||||||
- commentedOutCode
|
- commentFormatting
|
||||||
- deferInLoop
|
- commentedOutImport
|
||||||
- deprecatedComment
|
- defaultCaseOrder
|
||||||
- dupArg
|
- deferUnlambda
|
||||||
- dupBranchBody
|
- docStub
|
||||||
- dupCase
|
- dupImport
|
||||||
- dupSubExpr
|
- elseif
|
||||||
- dynamicFmtString
|
- emptyFallthrough
|
||||||
- emptyDecl
|
- emptyStringTest
|
||||||
- evalOrder
|
- exposedSyncMutex
|
||||||
- exitAfterDefer
|
- hexLiteral
|
||||||
- externalErrorReassign
|
- httpNoBody
|
||||||
- filepathJoin
|
- ifElseChain
|
||||||
- flagDeref
|
- methodExprCall
|
||||||
- flagName
|
- newDeref
|
||||||
- mapKey
|
- octalLiteral
|
||||||
- nilValReturn
|
- preferFilepathJoin
|
||||||
- offBy1
|
- redundantSprint
|
||||||
- regexpPattern
|
- regexpMust
|
||||||
- returnAfterHttpError
|
- regexpSimplify
|
||||||
- sloppyReassign
|
- ruleguard
|
||||||
- sloppyTypeAssert
|
- singleCaseSwitch
|
||||||
- sortSlice
|
- sloppyLen
|
||||||
- sprintfQuotedString
|
- stringConcatSimplify
|
||||||
- sqlQuery
|
- stringsCompare
|
||||||
- syncMapLoadAndDelete
|
- switchTrue
|
||||||
- truncateCmp
|
- timeExprSimplify
|
||||||
- unnecessaryDefer
|
- tooManyResultsChecker
|
||||||
- weakCond
|
- typeAssertChain
|
||||||
|
- typeDefFirst
|
||||||
# Performance
|
- typeSwitchVar
|
||||||
- appendCombine
|
- underef
|
||||||
- equalFold
|
- unlabelStmt
|
||||||
- hugeParam
|
- unlambda
|
||||||
- indexAlloc
|
- unslice
|
||||||
- preferDecodeRune
|
- valSwap
|
||||||
- preferFprint
|
- whyNoLint
|
||||||
- preferStringWriter
|
- wrapperFunc
|
||||||
- preferWriteByte
|
- yodaStyleExpr
|
||||||
- rangeExprCopy
|
- builtinShadow
|
||||||
- rangeValCopy
|
- importShadow
|
||||||
- sliceClear
|
- initClause
|
||||||
- stringXbytes
|
- nestingReduce
|
||||||
|
- paramTypeCombine
|
||||||
# Style
|
- ptrToRefParam
|
||||||
- assignOp
|
- typeUnparen
|
||||||
- boolExprSimplify
|
- unnamedResult
|
||||||
- captLocal
|
- unnecessaryBlock
|
||||||
- commentFormatting
|
gocyclo:
|
||||||
- commentedOutImport
|
min-complexity: 40
|
||||||
- defaultCaseOrder
|
godox:
|
||||||
- deferUnlambda
|
keywords:
|
||||||
- docStub
|
- BUG
|
||||||
- dupImport
|
- FIXME
|
||||||
- elseif
|
- HACK
|
||||||
- emptyFallthrough
|
nolintlint:
|
||||||
- emptyStringTest
|
require-explanation: false
|
||||||
- exposedSyncMutex
|
require-specific: true
|
||||||
- hexLiteral
|
allow-unused: false
|
||||||
- httpNoBody
|
exclusions:
|
||||||
- ifElseChain
|
generated: lax
|
||||||
- methodExprCall
|
presets:
|
||||||
- newDeref
|
- comments
|
||||||
- octalLiteral
|
- common-false-positives
|
||||||
- preferFilepathJoin
|
- legacy
|
||||||
- redundantSprint
|
- std-error-handling
|
||||||
- regexpMust
|
paths:
|
||||||
- regexpSimplify
|
- third_party$
|
||||||
- ruleguard
|
- builtin$
|
||||||
- singleCaseSwitch
|
- examples$
|
||||||
- sloppyLen
|
issues:
|
||||||
- stringConcatSimplify
|
max-issues-per-linter: 0
|
||||||
- stringsCompare
|
max-same-issues: 0
|
||||||
- switchTrue
|
formatters:
|
||||||
- timeExprSimplify
|
enable:
|
||||||
- tooManyResultsChecker
|
- gofmt
|
||||||
- typeAssertChain
|
- gofumpt
|
||||||
- typeDefFirst
|
- goimports
|
||||||
- typeSwitchVar
|
exclusions:
|
||||||
- underef
|
generated: lax
|
||||||
- unlabelStmt
|
paths:
|
||||||
- unlambda
|
- third_party$
|
||||||
- unslice
|
- builtin$
|
||||||
- valSwap
|
- examples$
|
||||||
- whyNoLint
|
|
||||||
- wrapperFunc
|
|
||||||
- yodaStyleExpr
|
|
||||||
|
|
||||||
# Opinionated
|
|
||||||
- builtinShadow
|
|
||||||
- importShadow
|
|
||||||
- initClause
|
|
||||||
- nestingReduce
|
|
||||||
- paramTypeCombine
|
|
||||||
- ptrToRefParam
|
|
||||||
- typeUnparen
|
|
||||||
- unnamedResult
|
|
||||||
- unnecessaryBlock
|
|
||||||
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
|
|
||||||
# Enable to require nolint directives to mention the specific linter being suppressed. Default is false.
|
|
||||||
require-specific: true
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue