fix: disable structcheck with go1.18 (#2666)

This commit is contained in:
Ludovic Fernandez 2022-03-20 22:32:04 +01:00 committed by GitHub
parent cd37b5c31d
commit f055441536
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -576,7 +576,8 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
WithSince("v1.0.0").
WithLoadForGoAnalysis().
WithPresets(linter.PresetUnused).
WithURL("https://github.com/opennota/check"),
WithURL("https://github.com/opennota/check").
WithNoopFallback(m.cfg),
linter.NewConfig(golinters.NewStylecheck(stylecheckCfg)).
WithSince("v1.20.0").