staticcheck: re-enable for go1.18 (#2746)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
parent
7d24a49c05
commit
f5b92e1ae2
@ -419,8 +419,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
|
|||||||
WithLoadForGoAnalysis().
|
WithLoadForGoAnalysis().
|
||||||
WithPresets(linter.PresetStyle).
|
WithPresets(linter.PresetStyle).
|
||||||
WithAlternativeNames(megacheckName).
|
WithAlternativeNames(megacheckName).
|
||||||
WithURL("https://github.com/dominikh/go-tools/tree/master/simple").
|
WithURL("https://github.com/dominikh/go-tools/tree/master/simple"),
|
||||||
WithNoopFallback(m.cfg),
|
|
||||||
|
|
||||||
linter.NewConfig(golinters.NewGovet(govetCfg)).
|
linter.NewConfig(golinters.NewGovet(govetCfg)).
|
||||||
WithSince("v1.0.0").
|
WithSince("v1.0.0").
|
||||||
@ -578,8 +577,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
|
|||||||
WithLoadForGoAnalysis().
|
WithLoadForGoAnalysis().
|
||||||
WithPresets(linter.PresetBugs, linter.PresetMetaLinter).
|
WithPresets(linter.PresetBugs, linter.PresetMetaLinter).
|
||||||
WithAlternativeNames(megacheckName).
|
WithAlternativeNames(megacheckName).
|
||||||
WithURL("https://staticcheck.io/").
|
WithURL("https://staticcheck.io/"),
|
||||||
WithNoopFallback(m.cfg),
|
|
||||||
|
|
||||||
linter.NewConfig(golinters.NewStructcheck()).
|
linter.NewConfig(golinters.NewStructcheck()).
|
||||||
WithSince("v1.0.0").
|
WithSince("v1.0.0").
|
||||||
@ -592,8 +590,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
|
|||||||
WithSince("v1.20.0").
|
WithSince("v1.20.0").
|
||||||
WithLoadForGoAnalysis().
|
WithLoadForGoAnalysis().
|
||||||
WithPresets(linter.PresetStyle).
|
WithPresets(linter.PresetStyle).
|
||||||
WithURL("https://github.com/dominikh/go-tools/tree/master/stylecheck").
|
WithURL("https://github.com/dominikh/go-tools/tree/master/stylecheck"),
|
||||||
WithNoopFallback(m.cfg),
|
|
||||||
|
|
||||||
linter.NewConfig(golinters.NewTagliatelle(tagliatelleCfg)).
|
linter.NewConfig(golinters.NewTagliatelle(tagliatelleCfg)).
|
||||||
WithSince("v1.40.0").
|
WithSince("v1.40.0").
|
||||||
@ -650,8 +647,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
|
|||||||
WithAlternativeNames(megacheckName).
|
WithAlternativeNames(megacheckName).
|
||||||
ConsiderSlow().
|
ConsiderSlow().
|
||||||
WithChangeTypes().
|
WithChangeTypes().
|
||||||
WithURL("https://github.com/dominikh/go-tools/tree/master/unused").
|
WithURL("https://github.com/dominikh/go-tools/tree/master/unused"),
|
||||||
WithNoopFallback(m.cfg),
|
|
||||||
|
|
||||||
linter.NewConfig(golinters.NewVarcheck()).
|
linter.NewConfig(golinters.NewVarcheck()).
|
||||||
WithSince("v1.0.0").
|
WithSince("v1.0.0").
|
||||||
|
Loading…
x
Reference in New Issue
Block a user