@@ -81,9 +81,6 @@ var defaultLintersSettings = LintersSettings{
81
81
ModulePath : "" ,
82
82
ExtraRules : false ,
83
83
},
84
- Golint : GoLintSettings {
85
- MinConfidence : 0.8 ,
86
- },
87
84
Gosec : GoSecSettings {
88
85
Concurrency : runtime .NumCPU (),
89
86
},
@@ -93,10 +90,6 @@ var defaultLintersSettings = LintersSettings{
93
90
IgnoreTests : true ,
94
91
WatchForScripts : []string {"Han" },
95
92
},
96
- Ifshort : IfshortSettings {
97
- MaxDeclLines : 1 ,
98
- MaxDeclChars : 30 ,
99
- },
100
93
Inamedparam : INamedParamSettings {
101
94
SkipSingleParam : false ,
102
95
},
@@ -204,90 +197,84 @@ var defaultLintersSettings = LintersSettings{
204
197
}
205
198
206
199
type LintersSettings struct {
207
- Asasalint AsasalintSettings
208
- BiDiChk BiDiChkSettings
209
- CopyLoopVar CopyLoopVarSettings
210
- Cyclop Cyclop
211
- Decorder DecorderSettings
212
- Depguard DepGuardSettings
213
- Dogsled DogsledSettings
214
- Dupl DuplSettings
215
- DupWord DupWordSettings
216
- Errcheck ErrcheckSettings
217
- ErrChkJSON ErrChkJSONSettings
218
- ErrorLint ErrorLintSettings
219
- Exhaustive ExhaustiveSettings
220
- ExhaustiveStruct ExhaustiveStructSettings
221
- Exhaustruct ExhaustructSettings
222
- Forbidigo ForbidigoSettings
223
- Funlen FunlenSettings
224
- Gci GciSettings
225
- GinkgoLinter GinkgoLinterSettings
226
- Gocognit GocognitSettings
227
- Goconst GoConstSettings
228
- Gocritic GoCriticSettings
229
- Gocyclo GoCycloSettings
230
- Godot GodotSettings
231
- Godox GodoxSettings
232
- Gofmt GoFmtSettings
233
- Gofumpt GofumptSettings
234
- Goheader GoHeaderSettings
235
- Goimports GoImportsSettings
236
- Golint GoLintSettings
237
- Gomnd GoMndSettings
238
- GoModDirectives GoModDirectivesSettings
239
- Gomodguard GoModGuardSettings
240
- Gosec GoSecSettings
241
- Gosimple StaticCheckSettings
242
- Gosmopolitan GosmopolitanSettings
243
- Govet GovetSettings
244
- Grouper GrouperSettings
245
- Ifshort IfshortSettings
246
- ImportAs ImportAsSettings
247
- Inamedparam INamedParamSettings
248
- InterfaceBloat InterfaceBloatSettings
249
- Ireturn IreturnSettings
250
- Lll LllSettings
251
- LoggerCheck LoggerCheckSettings
252
- MaintIdx MaintIdxSettings
253
- Makezero MakezeroSettings
254
- Maligned MalignedSettings
255
- Misspell MisspellSettings
256
- MustTag MustTagSettings
257
- Nakedret NakedretSettings
258
- Nestif NestifSettings
259
- NilNil NilNilSettings
260
- Nlreturn NlreturnSettings
261
- NoLintLint NoLintLintSettings
262
- NoNamedReturns NoNamedReturnsSettings
263
- ParallelTest ParallelTestSettings
264
- PerfSprint PerfSprintSettings
265
- Prealloc PreallocSettings
266
- Predeclared PredeclaredSettings
267
- Promlinter PromlinterSettings
268
- ProtoGetter ProtoGetterSettings
269
- Reassign ReassignSettings
270
- Revive ReviveSettings
271
- RowsErrCheck RowsErrCheckSettings
272
- SlogLint SlogLintSettings
273
- Spancheck SpancheckSettings
274
- Staticcheck StaticCheckSettings
275
- Structcheck StructCheckSettings
276
- Stylecheck StaticCheckSettings
277
- TagAlign TagAlignSettings
278
- Tagliatelle TagliatelleSettings
279
- Tenv TenvSettings
280
- Testifylint TestifylintSettings
281
- Testpackage TestpackageSettings
282
- Thelper ThelperSettings
283
- Unparam UnparamSettings
284
- Unused UnusedSettings
285
- UseStdlibVars UseStdlibVarsSettings
286
- Varcheck VarCheckSettings
287
- Varnamelen VarnamelenSettings
288
- Whitespace WhitespaceSettings
289
- Wrapcheck WrapcheckSettings
290
- WSL WSLSettings
200
+ Asasalint AsasalintSettings
201
+ BiDiChk BiDiChkSettings
202
+ CopyLoopVar CopyLoopVarSettings
203
+ Cyclop Cyclop
204
+ Decorder DecorderSettings
205
+ Depguard DepGuardSettings
206
+ Dogsled DogsledSettings
207
+ Dupl DuplSettings
208
+ DupWord DupWordSettings
209
+ Errcheck ErrcheckSettings
210
+ ErrChkJSON ErrChkJSONSettings
211
+ ErrorLint ErrorLintSettings
212
+ Exhaustive ExhaustiveSettings
213
+ Exhaustruct ExhaustructSettings
214
+ Forbidigo ForbidigoSettings
215
+ Funlen FunlenSettings
216
+ Gci GciSettings
217
+ GinkgoLinter GinkgoLinterSettings
218
+ Gocognit GocognitSettings
219
+ Goconst GoConstSettings
220
+ Gocritic GoCriticSettings
221
+ Gocyclo GoCycloSettings
222
+ Godot GodotSettings
223
+ Godox GodoxSettings
224
+ Gofmt GoFmtSettings
225
+ Gofumpt GofumptSettings
226
+ Goheader GoHeaderSettings
227
+ Goimports GoImportsSettings
228
+ Gomnd GoMndSettings
229
+ GoModDirectives GoModDirectivesSettings
230
+ Gomodguard GoModGuardSettings
231
+ Gosec GoSecSettings
232
+ Gosimple StaticCheckSettings
233
+ Gosmopolitan GosmopolitanSettings
234
+ Govet GovetSettings
235
+ Grouper GrouperSettings
236
+ ImportAs ImportAsSettings
237
+ Inamedparam INamedParamSettings
238
+ InterfaceBloat InterfaceBloatSettings
239
+ Ireturn IreturnSettings
240
+ Lll LllSettings
241
+ LoggerCheck LoggerCheckSettings
242
+ MaintIdx MaintIdxSettings
243
+ Makezero MakezeroSettings
244
+ Misspell MisspellSettings
245
+ MustTag MustTagSettings
246
+ Nakedret NakedretSettings
247
+ Nestif NestifSettings
248
+ NilNil NilNilSettings
249
+ Nlreturn NlreturnSettings
250
+ NoLintLint NoLintLintSettings
251
+ NoNamedReturns NoNamedReturnsSettings
252
+ ParallelTest ParallelTestSettings
253
+ PerfSprint PerfSprintSettings
254
+ Prealloc PreallocSettings
255
+ Predeclared PredeclaredSettings
256
+ Promlinter PromlinterSettings
257
+ ProtoGetter ProtoGetterSettings
258
+ Reassign ReassignSettings
259
+ Revive ReviveSettings
260
+ RowsErrCheck RowsErrCheckSettings
261
+ SlogLint SlogLintSettings
262
+ Spancheck SpancheckSettings
263
+ Staticcheck StaticCheckSettings
264
+ Stylecheck StaticCheckSettings
265
+ TagAlign TagAlignSettings
266
+ Tagliatelle TagliatelleSettings
267
+ Tenv TenvSettings
268
+ Testifylint TestifylintSettings
269
+ Testpackage TestpackageSettings
270
+ Thelper ThelperSettings
271
+ Unparam UnparamSettings
272
+ Unused UnusedSettings
273
+ UseStdlibVars UseStdlibVarsSettings
274
+ Varnamelen VarnamelenSettings
275
+ Whitespace WhitespaceSettings
276
+ Wrapcheck WrapcheckSettings
277
+ WSL WSLSettings
291
278
292
279
Custom map [string ]CustomLinterSettings
293
280
}
@@ -399,10 +386,6 @@ type ExhaustiveSettings struct {
399
386
DefaultCaseRequired bool `mapstructure:"default-case-required"`
400
387
}
401
388
402
- type ExhaustiveStructSettings struct {
403
- StructPatterns []string `mapstructure:"struct-patterns"`
404
- }
405
-
406
389
type ExhaustructSettings struct {
407
390
Include []string `mapstructure:"include"`
408
391
Exclude []string `mapstructure:"exclude"`
@@ -549,10 +532,6 @@ type GoImportsSettings struct {
549
532
LocalPrefixes string `mapstructure:"local-prefixes"`
550
533
}
551
534
552
- type GoLintSettings struct {
553
- MinConfidence float64 `mapstructure:"min-confidence"`
554
- }
555
-
556
535
type GoMndSettings struct {
557
536
Settings map [string ]map [string ]any // Deprecated
558
537
Checks []string `mapstructure:"checks"`
@@ -638,11 +617,6 @@ type GrouperSettings struct {
638
617
VarRequireGrouping bool `mapstructure:"var-require-grouping"`
639
618
}
640
619
641
- type IfshortSettings struct {
642
- MaxDeclLines int `mapstructure:"max-decl-lines"`
643
- MaxDeclChars int `mapstructure:"max-decl-chars"`
644
- }
645
-
646
620
type ImportAsSettings struct {
647
621
Alias []ImportAsAlias
648
622
NoUnaliased bool `mapstructure:"no-unaliased"`
@@ -690,10 +664,6 @@ type MakezeroSettings struct {
690
664
Always bool
691
665
}
692
666
693
- type MalignedSettings struct {
694
- SuggestNewOrder bool `mapstructure:"suggest-new"`
695
- }
696
-
697
667
type MisspellSettings struct {
698
668
Mode string `mapstructure:"mode"`
699
669
Locale string `mapstructure:"locale"`
@@ -838,10 +808,6 @@ func (s *StaticCheckSettings) HasConfiguration() bool {
838
808
return len (s .Initialisms ) > 0 || len (s .HTTPStatusCodeWhitelist ) > 0 || len (s .DotImportWhitelist ) > 0 || len (s .Checks ) > 0
839
809
}
840
810
841
- type StructCheckSettings struct {
842
- CheckExportedFields bool `mapstructure:"exported-fields"`
843
- }
844
-
845
811
type TagAlignSettings struct {
846
812
Align bool `mapstructure:"align"`
847
813
Sort bool `mapstructure:"sort"`
@@ -931,10 +897,6 @@ type UnusedSettings struct {
931
897
GeneratedIsUsed bool `mapstructure:"generated-is-used"`
932
898
}
933
899
934
- type VarCheckSettings struct {
935
- CheckExportedFields bool `mapstructure:"exported-fields"`
936
- }
937
-
938
900
type VarnamelenSettings struct {
939
901
MaxDistance int `mapstructure:"max-distance"`
940
902
MinNameLength int `mapstructure:"min-name-length"`
0 commit comments