@@ -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,89 +197,83 @@ var defaultLintersSettings = LintersSettings{
204
197
}
205
198
206
199
type LintersSettings struct {
207
- Asasalint AsasalintSettings
208
- BiDiChk BiDiChkSettings
209
- Cyclop Cyclop
210
- Decorder DecorderSettings
211
- Depguard DepGuardSettings
212
- Dogsled DogsledSettings
213
- Dupl DuplSettings
214
- DupWord DupWordSettings
215
- Errcheck ErrcheckSettings
216
- ErrChkJSON ErrChkJSONSettings
217
- ErrorLint ErrorLintSettings
218
- Exhaustive ExhaustiveSettings
219
- ExhaustiveStruct ExhaustiveStructSettings
220
- Exhaustruct ExhaustructSettings
221
- Forbidigo ForbidigoSettings
222
- Funlen FunlenSettings
223
- Gci GciSettings
224
- GinkgoLinter GinkgoLinterSettings
225
- Gocognit GocognitSettings
226
- Goconst GoConstSettings
227
- Gocritic GoCriticSettings
228
- Gocyclo GoCycloSettings
229
- Godot GodotSettings
230
- Godox GodoxSettings
231
- Gofmt GoFmtSettings
232
- Gofumpt GofumptSettings
233
- Goheader GoHeaderSettings
234
- Goimports GoImportsSettings
235
- Golint GoLintSettings
236
- Gomnd GoMndSettings
237
- GoModDirectives GoModDirectivesSettings
238
- Gomodguard GoModGuardSettings
239
- Gosec GoSecSettings
240
- Gosimple StaticCheckSettings
241
- Gosmopolitan GosmopolitanSettings
242
- Govet GovetSettings
243
- Grouper GrouperSettings
244
- Ifshort IfshortSettings
245
- ImportAs ImportAsSettings
246
- Inamedparam INamedParamSettings
247
- InterfaceBloat InterfaceBloatSettings
248
- Ireturn IreturnSettings
249
- Lll LllSettings
250
- LoggerCheck LoggerCheckSettings
251
- MaintIdx MaintIdxSettings
252
- Makezero MakezeroSettings
253
- Maligned MalignedSettings
254
- Misspell MisspellSettings
255
- MustTag MustTagSettings
256
- Nakedret NakedretSettings
257
- Nestif NestifSettings
258
- NilNil NilNilSettings
259
- Nlreturn NlreturnSettings
260
- NoLintLint NoLintLintSettings
261
- NoNamedReturns NoNamedReturnsSettings
262
- ParallelTest ParallelTestSettings
263
- PerfSprint PerfSprintSettings
264
- Prealloc PreallocSettings
265
- Predeclared PredeclaredSettings
266
- Promlinter PromlinterSettings
267
- ProtoGetter ProtoGetterSettings
268
- Reassign ReassignSettings
269
- Revive ReviveSettings
270
- RowsErrCheck RowsErrCheckSettings
271
- SlogLint SlogLintSettings
272
- Spancheck SpancheckSettings
273
- Staticcheck StaticCheckSettings
274
- Structcheck StructCheckSettings
275
- Stylecheck StaticCheckSettings
276
- TagAlign TagAlignSettings
277
- Tagliatelle TagliatelleSettings
278
- Tenv TenvSettings
279
- Testifylint TestifylintSettings
280
- Testpackage TestpackageSettings
281
- Thelper ThelperSettings
282
- Unparam UnparamSettings
283
- Unused UnusedSettings
284
- UseStdlibVars UseStdlibVarsSettings
285
- Varcheck VarCheckSettings
286
- Varnamelen VarnamelenSettings
287
- Whitespace WhitespaceSettings
288
- Wrapcheck WrapcheckSettings
289
- WSL WSLSettings
200
+ Asasalint AsasalintSettings
201
+ BiDiChk BiDiChkSettings
202
+ Cyclop Cyclop
203
+ Decorder DecorderSettings
204
+ Depguard DepGuardSettings
205
+ Dogsled DogsledSettings
206
+ Dupl DuplSettings
207
+ DupWord DupWordSettings
208
+ Errcheck ErrcheckSettings
209
+ ErrChkJSON ErrChkJSONSettings
210
+ ErrorLint ErrorLintSettings
211
+ Exhaustive ExhaustiveSettings
212
+ Exhaustruct ExhaustructSettings
213
+ Forbidigo ForbidigoSettings
214
+ Funlen FunlenSettings
215
+ Gci GciSettings
216
+ GinkgoLinter GinkgoLinterSettings
217
+ Gocognit GocognitSettings
218
+ Goconst GoConstSettings
219
+ Gocritic GoCriticSettings
220
+ Gocyclo GoCycloSettings
221
+ Godot GodotSettings
222
+ Godox GodoxSettings
223
+ Gofmt GoFmtSettings
224
+ Gofumpt GofumptSettings
225
+ Goheader GoHeaderSettings
226
+ Goimports GoImportsSettings
227
+ Gomnd GoMndSettings
228
+ GoModDirectives GoModDirectivesSettings
229
+ Gomodguard GoModGuardSettings
230
+ Gosec GoSecSettings
231
+ Gosimple StaticCheckSettings
232
+ Gosmopolitan GosmopolitanSettings
233
+ Govet GovetSettings
234
+ Grouper GrouperSettings
235
+ ImportAs ImportAsSettings
236
+ Inamedparam INamedParamSettings
237
+ InterfaceBloat InterfaceBloatSettings
238
+ Ireturn IreturnSettings
239
+ Lll LllSettings
240
+ LoggerCheck LoggerCheckSettings
241
+ MaintIdx MaintIdxSettings
242
+ Makezero MakezeroSettings
243
+ Misspell MisspellSettings
244
+ MustTag MustTagSettings
245
+ Nakedret NakedretSettings
246
+ Nestif NestifSettings
247
+ NilNil NilNilSettings
248
+ Nlreturn NlreturnSettings
249
+ NoLintLint NoLintLintSettings
250
+ NoNamedReturns NoNamedReturnsSettings
251
+ ParallelTest ParallelTestSettings
252
+ PerfSprint PerfSprintSettings
253
+ Prealloc PreallocSettings
254
+ Predeclared PredeclaredSettings
255
+ Promlinter PromlinterSettings
256
+ ProtoGetter ProtoGetterSettings
257
+ Reassign ReassignSettings
258
+ Revive ReviveSettings
259
+ RowsErrCheck RowsErrCheckSettings
260
+ SlogLint SlogLintSettings
261
+ Spancheck SpancheckSettings
262
+ Staticcheck StaticCheckSettings
263
+ Stylecheck StaticCheckSettings
264
+ TagAlign TagAlignSettings
265
+ Tagliatelle TagliatelleSettings
266
+ Tenv TenvSettings
267
+ Testifylint TestifylintSettings
268
+ Testpackage TestpackageSettings
269
+ Thelper ThelperSettings
270
+ Unparam UnparamSettings
271
+ Unused UnusedSettings
272
+ UseStdlibVars UseStdlibVarsSettings
273
+ Varnamelen VarnamelenSettings
274
+ Whitespace WhitespaceSettings
275
+ Wrapcheck WrapcheckSettings
276
+ WSL WSLSettings
290
277
291
278
Custom map [string ]CustomLinterSettings
292
279
}
@@ -394,10 +381,6 @@ type ExhaustiveSettings struct {
394
381
DefaultCaseRequired bool `mapstructure:"default-case-required"`
395
382
}
396
383
397
- type ExhaustiveStructSettings struct {
398
- StructPatterns []string `mapstructure:"struct-patterns"`
399
- }
400
-
401
384
type ExhaustructSettings struct {
402
385
Include []string `mapstructure:"include"`
403
386
Exclude []string `mapstructure:"exclude"`
@@ -544,10 +527,6 @@ type GoImportsSettings struct {
544
527
LocalPrefixes string `mapstructure:"local-prefixes"`
545
528
}
546
529
547
- type GoLintSettings struct {
548
- MinConfidence float64 `mapstructure:"min-confidence"`
549
- }
550
-
551
530
type GoMndSettings struct {
552
531
Settings map [string ]map [string ]any // Deprecated
553
532
Checks []string `mapstructure:"checks"`
@@ -633,11 +612,6 @@ type GrouperSettings struct {
633
612
VarRequireGrouping bool `mapstructure:"var-require-grouping"`
634
613
}
635
614
636
- type IfshortSettings struct {
637
- MaxDeclLines int `mapstructure:"max-decl-lines"`
638
- MaxDeclChars int `mapstructure:"max-decl-chars"`
639
- }
640
-
641
615
type ImportAsSettings struct {
642
616
Alias []ImportAsAlias
643
617
NoUnaliased bool `mapstructure:"no-unaliased"`
@@ -685,10 +659,6 @@ type MakezeroSettings struct {
685
659
Always bool
686
660
}
687
661
688
- type MalignedSettings struct {
689
- SuggestNewOrder bool `mapstructure:"suggest-new"`
690
- }
691
-
692
662
type MisspellSettings struct {
693
663
Mode string `mapstructure:"mode"`
694
664
Locale string `mapstructure:"locale"`
@@ -833,10 +803,6 @@ func (s *StaticCheckSettings) HasConfiguration() bool {
833
803
return len (s .Initialisms ) > 0 || len (s .HTTPStatusCodeWhitelist ) > 0 || len (s .DotImportWhitelist ) > 0 || len (s .Checks ) > 0
834
804
}
835
805
836
- type StructCheckSettings struct {
837
- CheckExportedFields bool `mapstructure:"exported-fields"`
838
- }
839
-
840
806
type TagAlignSettings struct {
841
807
Align bool `mapstructure:"align"`
842
808
Sort bool `mapstructure:"sort"`
@@ -922,10 +888,6 @@ type UnusedSettings struct {
922
888
GeneratedIsUsed bool `mapstructure:"generated-is-used"`
923
889
}
924
890
925
- type VarCheckSettings struct {
926
- CheckExportedFields bool `mapstructure:"exported-fields"`
927
- }
928
-
929
891
type VarnamelenSettings struct {
930
892
MaxDistance int `mapstructure:"max-distance"`
931
893
MinNameLength int `mapstructure:"min-name-length"`
0 commit comments