File tree Expand file tree Collapse file tree 2 files changed +147
-185
lines changed Expand file tree Collapse file tree 2 files changed +147
-185
lines changed Original file line number Diff line number Diff line change 2828 check-latest : true
2929
3030 - name : golangci-lint
31- uses : golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2
31+ uses : golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # v7.0.0
3232 with :
3333 only-new-issues : true
Original file line number Diff line number Diff line change 1+ version : " 2"
12run :
2- timeout : 10m
33 allow-parallel-runners : true
4-
5- issues :
6- # Maximum issues count per one linter. Set to 0 to disable. Default is 50.
7- max-issues-per-linter : 0
8-
9- # Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
10- max-same-issues : 0
114linters :
12- disable-all : true
5+ default : none
136 enable :
147 - asasalint
158 - asciicheck
@@ -29,15 +22,11 @@ linters:
2922 - gocritic
3023 - gocyclo
3124 - godox
32- - gofmt
33- - gofumpt
3425 - goheader
35- - goimports
3626 - gomoddirectives
3727 - gomodguard
3828 - goprintffuncname
3929 - gosec
40- - gosimple
4130 - govet
4231 - grouper
4332 - importas
@@ -57,180 +46,153 @@ linters:
5746 - rowserrcheck
5847 - sqlclosecheck
5948 - staticcheck
60- - stylecheck
61- - tenv
6249 - testableexamples
63- - typecheck
6450 - unconvert
6551 - unparam
6652 - unused
6753 - usestdlibvars
6854 - whitespace
69- # - containedctx
70- # - cyclop
71- # - dupword
72- # - errorlint
73- # - exhaustive
74- # - exhaustruct
75- # - exportloopref
76- # - forbidigo
77- # - forcetypeassert
78- # - funlen
79- # - gci
80- # - gochecknoglobals
81- # - gochecknoinits
82- # - gocognit
83- # - godot
84- # - goerr113
85- # - gomnd
86- # - interfacebloat
87- # - ireturn
88- # - lll
89- # - maintidx
90- # - nestif
91- # - nilerr
92- # - nilnil
93- # - nlreturn
94- # - noctx
95- # - nonamedreturns
96- # - paralleltest
97- # - tagliatelle
98- # - testpackage
99- # - thelper
100- # - tparallel
101- # - varnamelen
102- # - wastedassign
103- # - wrapcheck
104- # - wsl
105- linters-settings :
106- gocyclo :
107- min-complexity : 40
108- godox :
109- keywords :
110- - BUG
111- - FIXME
112- - HACK
113- errcheck :
114- check-type-assertions : true
115- check-blank : true
116- gocritic :
117- enabled-checks :
118- # Diagnostic
119- - appendAssign
120- - argOrder
121- - badCall
122- - badCond
123- - badLock
124- - badRegexp
125- - badSorting
126- - builtinShadowDecl
127- - caseOrder
128- - codegenComment
129- - commentedOutCode
130- - deferInLoop
131- - deprecatedComment
132- - dupArg
133- - dupBranchBody
134- - dupCase
135- - dupSubExpr
136- - dynamicFmtString
137- - emptyDecl
138- - evalOrder
139- - exitAfterDefer
140- - externalErrorReassign
141- - filepathJoin
142- - flagDeref
143- - flagName
144- - mapKey
145- - nilValReturn
146- - offBy1
147- - regexpPattern
148- - returnAfterHttpError
149- - sloppyReassign
150- - sloppyTypeAssert
151- - sortSlice
152- - sprintfQuotedString
153- - sqlQuery
154- - syncMapLoadAndDelete
155- - truncateCmp
156- - unnecessaryDefer
157- - weakCond
158-
159- # Performance
160- - appendCombine
161- - equalFold
162- - hugeParam
163- - indexAlloc
164- - preferDecodeRune
165- - preferFprint
166- - preferStringWriter
167- - preferWriteByte
168- - rangeExprCopy
169- - rangeValCopy
170- - sliceClear
171- - stringXbytes
172-
173- # Style
174- - assignOp
175- - boolExprSimplify
176- - captLocal
177- - commentFormatting
178- - commentedOutImport
179- - defaultCaseOrder
180- - deferUnlambda
181- - docStub
182- - dupImport
183- - elseif
184- - emptyFallthrough
185- - emptyStringTest
186- - exposedSyncMutex
187- - hexLiteral
188- - httpNoBody
189- - ifElseChain
190- - methodExprCall
191- - newDeref
192- - octalLiteral
193- - preferFilepathJoin
194- - redundantSprint
195- - regexpMust
196- - regexpSimplify
197- - ruleguard
198- - singleCaseSwitch
199- - sloppyLen
200- - stringConcatSimplify
201- - stringsCompare
202- - switchTrue
203- - timeExprSimplify
204- - tooManyResultsChecker
205- - typeAssertChain
206- - typeDefFirst
207- - typeSwitchVar
208- - underef
209- - unlabelStmt
210- - unlambda
211- - unslice
212- - valSwap
213- - whyNoLint
214- - wrapperFunc
215- - yodaStyleExpr
216-
217- # Opinionated
218- - builtinShadow
219- - importShadow
220- - initClause
221- - nestingReduce
222- - paramTypeCombine
223- - ptrToRefParam
224- - typeUnparen
225- - unnamedResult
226- - unnecessaryBlock
227- nolintlint :
228- # Enable to ensure that nolint directives are all used. Default is true.
229- allow-unused : false
230- # Exclude following linters from requiring an explanation. Default is [].
231- allow-no-explanation : []
232- # Enable to require an explanation of nonzero length after each nolint directive. Default is false.
233- # TODO(lint): Enforce explanations for `nolint` directives
234- require-explanation : false
235- # Enable to require nolint directives to mention the specific linter being suppressed. Default is false.
236- require-specific : true
55+ settings :
56+ errcheck :
57+ check-type-assertions : true
58+ check-blank : true
59+ gocritic :
60+ enabled-checks :
61+ - appendAssign
62+ - argOrder
63+ - badCall
64+ - badCond
65+ - badLock
66+ - badRegexp
67+ - badSorting
68+ - builtinShadowDecl
69+ - caseOrder
70+ - codegenComment
71+ - commentedOutCode
72+ - deferInLoop
73+ - deprecatedComment
74+ - dupArg
75+ - dupBranchBody
76+ - dupCase
77+ - dupSubExpr
78+ - dynamicFmtString
79+ - emptyDecl
80+ - evalOrder
81+ - exitAfterDefer
82+ - externalErrorReassign
83+ - filepathJoin
84+ - flagDeref
85+ - flagName
86+ - mapKey
87+ - nilValReturn
88+ - offBy1
89+ - regexpPattern
90+ - returnAfterHttpError
91+ - sloppyReassign
92+ - sloppyTypeAssert
93+ - sortSlice
94+ - sprintfQuotedString
95+ - sqlQuery
96+ - syncMapLoadAndDelete
97+ - truncateCmp
98+ - unnecessaryDefer
99+ - weakCond
100+ - appendCombine
101+ - equalFold
102+ - hugeParam
103+ - indexAlloc
104+ - preferDecodeRune
105+ - preferFprint
106+ - preferStringWriter
107+ - preferWriteByte
108+ - rangeExprCopy
109+ - rangeValCopy
110+ - sliceClear
111+ - stringXbytes
112+ - assignOp
113+ - boolExprSimplify
114+ - captLocal
115+ - commentFormatting
116+ - commentedOutImport
117+ - defaultCaseOrder
118+ - deferUnlambda
119+ - docStub
120+ - dupImport
121+ - elseif
122+ - emptyFallthrough
123+ - emptyStringTest
124+ - exposedSyncMutex
125+ - hexLiteral
126+ - httpNoBody
127+ - ifElseChain
128+ - methodExprCall
129+ - newDeref
130+ - octalLiteral
131+ - preferFilepathJoin
132+ - redundantSprint
133+ - regexpMust
134+ - regexpSimplify
135+ - ruleguard
136+ - singleCaseSwitch
137+ - sloppyLen
138+ - stringConcatSimplify
139+ - stringsCompare
140+ - switchTrue
141+ - timeExprSimplify
142+ - tooManyResultsChecker
143+ - typeAssertChain
144+ - typeDefFirst
145+ - typeSwitchVar
146+ - underef
147+ - unlabelStmt
148+ - unlambda
149+ - unslice
150+ - valSwap
151+ - whyNoLint
152+ - wrapperFunc
153+ - yodaStyleExpr
154+ - builtinShadow
155+ - importShadow
156+ - initClause
157+ - nestingReduce
158+ - paramTypeCombine
159+ - ptrToRefParam
160+ - typeUnparen
161+ - unnamedResult
162+ - unnecessaryBlock
163+ gocyclo :
164+ min-complexity : 40
165+ godox :
166+ keywords :
167+ - BUG
168+ - FIXME
169+ - HACK
170+ nolintlint :
171+ require-explanation : false
172+ require-specific : true
173+ allow-unused : false
174+ exclusions :
175+ generated : lax
176+ presets :
177+ - comments
178+ - common-false-positives
179+ - legacy
180+ - std-error-handling
181+ paths :
182+ - third_party$
183+ - builtin$
184+ - examples$
185+ issues :
186+ max-issues-per-linter : 0
187+ max-same-issues : 0
188+ formatters :
189+ enable :
190+ - gofmt
191+ - gofumpt
192+ - goimports
193+ exclusions :
194+ generated : lax
195+ paths :
196+ - third_party$
197+ - builtin$
198+ - examples$
You can’t perform that action at this time.
0 commit comments