Skip to content

Commit

Permalink
staticcheck: re-enable for go1.18 (golangci#2746)
Browse files Browse the repository at this point in the history
Co-authored-by: Fernandez Ludovic <[email protected]>
  • Loading branch information
2 people authored and SeigeC committed Apr 4, 2023
1 parent bf94b65 commit 1381abe
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions pkg/lint/lintersdb/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
WithLoadForGoAnalysis().
WithPresets(linter.PresetStyle).
WithAlternativeNames(megacheckName).
WithURL("https://github.com/dominikh/go-tools/tree/master/simple").
WithNoopFallback(m.cfg),
WithURL("https://github.com/dominikh/go-tools/tree/master/simple"),

linter.NewConfig(golinters.NewGovet(govetCfg)).
WithSince("v1.0.0").
Expand Down Expand Up @@ -578,8 +577,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
WithLoadForGoAnalysis().
WithPresets(linter.PresetBugs, linter.PresetMetaLinter).
WithAlternativeNames(megacheckName).
WithURL("https://staticcheck.io/").
WithNoopFallback(m.cfg),
WithURL("https://staticcheck.io/"),

linter.NewConfig(golinters.NewStructcheck()).
WithSince("v1.0.0").
Expand All @@ -592,8 +590,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
WithSince("v1.20.0").
WithLoadForGoAnalysis().
WithPresets(linter.PresetStyle).
WithURL("https://github.com/dominikh/go-tools/tree/master/stylecheck").
WithNoopFallback(m.cfg),
WithURL("https://github.com/dominikh/go-tools/tree/master/stylecheck"),

linter.NewConfig(golinters.NewTagliatelle(tagliatelleCfg)).
WithSince("v1.40.0").
Expand Down Expand Up @@ -650,8 +647,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
WithAlternativeNames(megacheckName).
ConsiderSlow().
WithChangeTypes().
WithURL("https://github.com/dominikh/go-tools/tree/master/unused").
WithNoopFallback(m.cfg),
WithURL("https://github.com/dominikh/go-tools/tree/master/unused"),

linter.NewConfig(golinters.NewVarcheck()).
WithSince("v1.0.0").
Expand Down

0 comments on commit 1381abe

Please sign in to comment.