@@ -205,84 +205,85 @@ var defaultLintersSettings = LintersSettings{
205
205
type LintersSettings struct {
206
206
FormatterSettings `mapstructure:"-"`
207
207
208
- Asasalint AsasalintSettings `mapstructure:"asasalint"`
209
- BiDiChk BiDiChkSettings `mapstructure:"bidichk"`
210
- CopyLoopVar CopyLoopVarSettings `mapstructure:"copyloopvar"`
211
- Cyclop CyclopSettings `mapstructure:"cyclop"`
212
- Decorder DecorderSettings `mapstructure:"decorder"`
213
- Depguard DepGuardSettings `mapstructure:"depguard"`
214
- Dogsled DogsledSettings `mapstructure:"dogsled"`
215
- Dupl DuplSettings `mapstructure:"dupl"`
216
- DupWord DupWordSettings `mapstructure:"dupword"`
217
- Errcheck ErrcheckSettings `mapstructure:"errcheck"`
218
- ErrChkJSON ErrChkJSONSettings `mapstructure:"errchkjson"`
219
- ErrorLint ErrorLintSettings `mapstructure:"errorlint"`
220
- Exhaustive ExhaustiveSettings `mapstructure:"exhaustive"`
221
- Exhaustruct ExhaustructSettings `mapstructure:"exhaustruct"`
222
- Fatcontext FatcontextSettings `mapstructure:"fatcontext"`
223
- Forbidigo ForbidigoSettings `mapstructure:"forbidigo"`
224
- FuncOrder FuncOrderSettings `mapstructure:"funcorder"`
225
- Funlen FunlenSettings `mapstructure:"funlen"`
226
- GinkgoLinter GinkgoLinterSettings `mapstructure:"ginkgolinter"`
227
- Gocognit GocognitSettings `mapstructure:"gocognit"`
228
- GoChecksumType GoChecksumTypeSettings `mapstructure:"gochecksumtype"`
229
- Goconst GoConstSettings `mapstructure:"goconst"`
230
- Gocritic GoCriticSettings `mapstructure:"gocritic"`
231
- Gocyclo GoCycloSettings `mapstructure:"gocyclo"`
232
- Godot GodotSettings `mapstructure:"godot"`
233
- Godox GodoxSettings `mapstructure:"godox"`
234
- Goheader GoHeaderSettings `mapstructure:"goheader"`
235
- GoModDirectives GoModDirectivesSettings `mapstructure:"gomoddirectives"`
236
- Gomodguard GoModGuardSettings `mapstructure:"gomodguard"`
237
- Gosec GoSecSettings `mapstructure:"gosec"`
238
- Gosmopolitan GosmopolitanSettings `mapstructure:"gosmopolitan"`
239
- Govet GovetSettings `mapstructure:"govet"`
240
- Grouper GrouperSettings `mapstructure:"grouper"`
241
- Iface IfaceSettings `mapstructure:"iface"`
242
- ImportAs ImportAsSettings `mapstructure:"importas"`
243
- Inamedparam INamedParamSettings `mapstructure:"inamedparam"`
244
- InterfaceBloat InterfaceBloatSettings `mapstructure:"interfacebloat"`
245
- Ireturn IreturnSettings `mapstructure:"ireturn"`
246
- Lll LllSettings `mapstructure:"lll"`
247
- LoggerCheck LoggerCheckSettings `mapstructure:"loggercheck"`
248
- MaintIdx MaintIdxSettings `mapstructure:"maintidx"`
249
- Makezero MakezeroSettings `mapstructure:"makezero"`
250
- Misspell MisspellSettings `mapstructure:"misspell"`
251
- Mnd MndSettings `mapstructure:"mnd"`
252
- MustTag MustTagSettings `mapstructure:"musttag"`
253
- Nakedret NakedretSettings `mapstructure:"nakedret"`
254
- Nestif NestifSettings `mapstructure:"nestif"`
255
- NilNil NilNilSettings `mapstructure:"nilnil"`
256
- Nlreturn NlreturnSettings `mapstructure:"nlreturn"`
257
- NoLintLint NoLintLintSettings `mapstructure:"nolintlint"`
258
- NoNamedReturns NoNamedReturnsSettings `mapstructure:"nonamedreturns"`
259
- ParallelTest ParallelTestSettings `mapstructure:"paralleltest"`
260
- PerfSprint PerfSprintSettings `mapstructure:"perfsprint"`
261
- Prealloc PreallocSettings `mapstructure:"prealloc"`
262
- Predeclared PredeclaredSettings `mapstructure:"predeclared"`
263
- Promlinter PromlinterSettings `mapstructure:"promlinter"`
264
- ProtoGetter ProtoGetterSettings `mapstructure:"protogetter"`
265
- Reassign ReassignSettings `mapstructure:"reassign"`
266
- Recvcheck RecvcheckSettings `mapstructure:"recvcheck"`
267
- Revive ReviveSettings `mapstructure:"revive"`
268
- RowsErrCheck RowsErrCheckSettings `mapstructure:"rowserrcheck"`
269
- SlogLint SlogLintSettings `mapstructure:"sloglint"`
270
- Spancheck SpancheckSettings `mapstructure:"spancheck"`
271
- Staticcheck StaticCheckSettings `mapstructure:"staticcheck"`
272
- TagAlign TagAlignSettings `mapstructure:"tagalign"`
273
- Tagliatelle TagliatelleSettings `mapstructure:"tagliatelle"`
274
- Testifylint TestifylintSettings `mapstructure:"testifylint"`
275
- Testpackage TestpackageSettings `mapstructure:"testpackage"`
276
- Thelper ThelperSettings `mapstructure:"thelper"`
277
- Unconvert UnconvertSettings `mapstructure:"unconvert"`
278
- Unparam UnparamSettings `mapstructure:"unparam"`
279
- Unused UnusedSettings `mapstructure:"unused"`
280
- UseStdlibVars UseStdlibVarsSettings `mapstructure:"usestdlibvars"`
281
- UseTesting UseTestingSettings `mapstructure:"usetesting"`
282
- Varnamelen VarnamelenSettings `mapstructure:"varnamelen"`
283
- Whitespace WhitespaceSettings `mapstructure:"whitespace"`
284
- Wrapcheck WrapcheckSettings `mapstructure:"wrapcheck"`
285
- WSL WSLSettings `mapstructure:"wsl"`
208
+ Asasalint AsasalintSettings `mapstructure:"asasalint"`
209
+ BiDiChk BiDiChkSettings `mapstructure:"bidichk"`
210
+ CopyLoopVar CopyLoopVarSettings `mapstructure:"copyloopvar"`
211
+ Cyclop CyclopSettings `mapstructure:"cyclop"`
212
+ Decorder DecorderSettings `mapstructure:"decorder"`
213
+ Depguard DepGuardSettings `mapstructure:"depguard"`
214
+ Dogsled DogsledSettings `mapstructure:"dogsled"`
215
+ Dupl DuplSettings `mapstructure:"dupl"`
216
+ DupWord DupWordSettings `mapstructure:"dupword"`
217
+ EmbeddedStructFieldCheck EmbeddedStructFieldCheckSettings `mapstructure:"embeddedstructfieldcheck"`
218
+ Errcheck ErrcheckSettings `mapstructure:"errcheck"`
219
+ ErrChkJSON ErrChkJSONSettings `mapstructure:"errchkjson"`
220
+ ErrorLint ErrorLintSettings `mapstructure:"errorlint"`
221
+ Exhaustive ExhaustiveSettings `mapstructure:"exhaustive"`
222
+ Exhaustruct ExhaustructSettings `mapstructure:"exhaustruct"`
223
+ Fatcontext FatcontextSettings `mapstructure:"fatcontext"`
224
+ Forbidigo ForbidigoSettings `mapstructure:"forbidigo"`
225
+ FuncOrder FuncOrderSettings `mapstructure:"funcorder"`
226
+ Funlen FunlenSettings `mapstructure:"funlen"`
227
+ GinkgoLinter GinkgoLinterSettings `mapstructure:"ginkgolinter"`
228
+ Gocognit GocognitSettings `mapstructure:"gocognit"`
229
+ GoChecksumType GoChecksumTypeSettings `mapstructure:"gochecksumtype"`
230
+ Goconst GoConstSettings `mapstructure:"goconst"`
231
+ Gocritic GoCriticSettings `mapstructure:"gocritic"`
232
+ Gocyclo GoCycloSettings `mapstructure:"gocyclo"`
233
+ Godot GodotSettings `mapstructure:"godot"`
234
+ Godox GodoxSettings `mapstructure:"godox"`
235
+ Goheader GoHeaderSettings `mapstructure:"goheader"`
236
+ GoModDirectives GoModDirectivesSettings `mapstructure:"gomoddirectives"`
237
+ Gomodguard GoModGuardSettings `mapstructure:"gomodguard"`
238
+ Gosec GoSecSettings `mapstructure:"gosec"`
239
+ Gosmopolitan GosmopolitanSettings `mapstructure:"gosmopolitan"`
240
+ Govet GovetSettings `mapstructure:"govet"`
241
+ Grouper GrouperSettings `mapstructure:"grouper"`
242
+ Iface IfaceSettings `mapstructure:"iface"`
243
+ ImportAs ImportAsSettings `mapstructure:"importas"`
244
+ Inamedparam INamedParamSettings `mapstructure:"inamedparam"`
245
+ InterfaceBloat InterfaceBloatSettings `mapstructure:"interfacebloat"`
246
+ Ireturn IreturnSettings `mapstructure:"ireturn"`
247
+ Lll LllSettings `mapstructure:"lll"`
248
+ LoggerCheck LoggerCheckSettings `mapstructure:"loggercheck"`
249
+ MaintIdx MaintIdxSettings `mapstructure:"maintidx"`
250
+ Makezero MakezeroSettings `mapstructure:"makezero"`
251
+ Misspell MisspellSettings `mapstructure:"misspell"`
252
+ Mnd MndSettings `mapstructure:"mnd"`
253
+ MustTag MustTagSettings `mapstructure:"musttag"`
254
+ Nakedret NakedretSettings `mapstructure:"nakedret"`
255
+ Nestif NestifSettings `mapstructure:"nestif"`
256
+ NilNil NilNilSettings `mapstructure:"nilnil"`
257
+ Nlreturn NlreturnSettings `mapstructure:"nlreturn"`
258
+ NoLintLint NoLintLintSettings `mapstructure:"nolintlint"`
259
+ NoNamedReturns NoNamedReturnsSettings `mapstructure:"nonamedreturns"`
260
+ ParallelTest ParallelTestSettings `mapstructure:"paralleltest"`
261
+ PerfSprint PerfSprintSettings `mapstructure:"perfsprint"`
262
+ Prealloc PreallocSettings `mapstructure:"prealloc"`
263
+ Predeclared PredeclaredSettings `mapstructure:"predeclared"`
264
+ Promlinter PromlinterSettings `mapstructure:"promlinter"`
265
+ ProtoGetter ProtoGetterSettings `mapstructure:"protogetter"`
266
+ Reassign ReassignSettings `mapstructure:"reassign"`
267
+ Recvcheck RecvcheckSettings `mapstructure:"recvcheck"`
268
+ Revive ReviveSettings `mapstructure:"revive"`
269
+ RowsErrCheck RowsErrCheckSettings `mapstructure:"rowserrcheck"`
270
+ SlogLint SlogLintSettings `mapstructure:"sloglint"`
271
+ Spancheck SpancheckSettings `mapstructure:"spancheck"`
272
+ Staticcheck StaticCheckSettings `mapstructure:"staticcheck"`
273
+ TagAlign TagAlignSettings `mapstructure:"tagalign"`
274
+ Tagliatelle TagliatelleSettings `mapstructure:"tagliatelle"`
275
+ Testifylint TestifylintSettings `mapstructure:"testifylint"`
276
+ Testpackage TestpackageSettings `mapstructure:"testpackage"`
277
+ Thelper ThelperSettings `mapstructure:"thelper"`
278
+ Unconvert UnconvertSettings `mapstructure:"unconvert"`
279
+ Unparam UnparamSettings `mapstructure:"unparam"`
280
+ Unused UnusedSettings `mapstructure:"unused"`
281
+ UseStdlibVars UseStdlibVarsSettings `mapstructure:"usestdlibvars"`
282
+ UseTesting UseTestingSettings `mapstructure:"usetesting"`
283
+ Varnamelen VarnamelenSettings `mapstructure:"varnamelen"`
284
+ Whitespace WhitespaceSettings `mapstructure:"whitespace"`
285
+ Wrapcheck WrapcheckSettings `mapstructure:"wrapcheck"`
286
+ WSL WSLSettings `mapstructure:"wsl"`
286
287
287
288
Custom map [string ]CustomLinterSettings `mapstructure:"custom"`
288
289
}
@@ -367,6 +368,10 @@ type DupWordSettings struct {
367
368
Ignore []string `mapstructure:"ignore"`
368
369
}
369
370
371
+ type EmbeddedStructFieldCheckSettings struct {
372
+ ForbidMutex bool `mapstructure:"forbid-mutex"`
373
+ }
374
+
370
375
type ErrcheckSettings struct {
371
376
DisableDefaultExclusions bool `mapstructure:"disable-default-exclusions"`
372
377
CheckTypeAssertions bool `mapstructure:"check-type-assertions"`
0 commit comments