Skip to content

Commit b9ddcba

Browse files
committed
chore: remove linter settings
1 parent 2e96043 commit b9ddcba

File tree

1 file changed

+77
-115
lines changed

1 file changed

+77
-115
lines changed

pkg/config/linters_settings.go

Lines changed: 77 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ var defaultLintersSettings = LintersSettings{
8181
ModulePath: "",
8282
ExtraRules: false,
8383
},
84-
Golint: GoLintSettings{
85-
MinConfidence: 0.8,
86-
},
8784
Gosec: GoSecSettings{
8885
Concurrency: runtime.NumCPU(),
8986
},
@@ -93,10 +90,6 @@ var defaultLintersSettings = LintersSettings{
9390
IgnoreTests: true,
9491
WatchForScripts: []string{"Han"},
9592
},
96-
Ifshort: IfshortSettings{
97-
MaxDeclLines: 1,
98-
MaxDeclChars: 30,
99-
},
10093
Inamedparam: INamedParamSettings{
10194
SkipSingleParam: false,
10295
},
@@ -204,89 +197,83 @@ var defaultLintersSettings = LintersSettings{
204197
}
205198

206199
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
290277

291278
Custom map[string]CustomLinterSettings
292279
}
@@ -394,10 +381,6 @@ type ExhaustiveSettings struct {
394381
DefaultCaseRequired bool `mapstructure:"default-case-required"`
395382
}
396383

397-
type ExhaustiveStructSettings struct {
398-
StructPatterns []string `mapstructure:"struct-patterns"`
399-
}
400-
401384
type ExhaustructSettings struct {
402385
Include []string `mapstructure:"include"`
403386
Exclude []string `mapstructure:"exclude"`
@@ -544,10 +527,6 @@ type GoImportsSettings struct {
544527
LocalPrefixes string `mapstructure:"local-prefixes"`
545528
}
546529

547-
type GoLintSettings struct {
548-
MinConfidence float64 `mapstructure:"min-confidence"`
549-
}
550-
551530
type GoMndSettings struct {
552531
Settings map[string]map[string]any // Deprecated
553532
Checks []string `mapstructure:"checks"`
@@ -633,11 +612,6 @@ type GrouperSettings struct {
633612
VarRequireGrouping bool `mapstructure:"var-require-grouping"`
634613
}
635614

636-
type IfshortSettings struct {
637-
MaxDeclLines int `mapstructure:"max-decl-lines"`
638-
MaxDeclChars int `mapstructure:"max-decl-chars"`
639-
}
640-
641615
type ImportAsSettings struct {
642616
Alias []ImportAsAlias
643617
NoUnaliased bool `mapstructure:"no-unaliased"`
@@ -685,10 +659,6 @@ type MakezeroSettings struct {
685659
Always bool
686660
}
687661

688-
type MalignedSettings struct {
689-
SuggestNewOrder bool `mapstructure:"suggest-new"`
690-
}
691-
692662
type MisspellSettings struct {
693663
Mode string `mapstructure:"mode"`
694664
Locale string `mapstructure:"locale"`
@@ -833,10 +803,6 @@ func (s *StaticCheckSettings) HasConfiguration() bool {
833803
return len(s.Initialisms) > 0 || len(s.HTTPStatusCodeWhitelist) > 0 || len(s.DotImportWhitelist) > 0 || len(s.Checks) > 0
834804
}
835805

836-
type StructCheckSettings struct {
837-
CheckExportedFields bool `mapstructure:"exported-fields"`
838-
}
839-
840806
type TagAlignSettings struct {
841807
Align bool `mapstructure:"align"`
842808
Sort bool `mapstructure:"sort"`
@@ -922,10 +888,6 @@ type UnusedSettings struct {
922888
GeneratedIsUsed bool `mapstructure:"generated-is-used"`
923889
}
924890

925-
type VarCheckSettings struct {
926-
CheckExportedFields bool `mapstructure:"exported-fields"`
927-
}
928-
929891
type VarnamelenSettings struct {
930892
MaxDistance int `mapstructure:"max-distance"`
931893
MinNameLength int `mapstructure:"min-name-length"`

0 commit comments

Comments
 (0)