From 14e6e2e85fab32ce77eb1413731864e3a7c88218 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Sun, 20 Mar 2022 21:06:23 +0100 Subject: [PATCH] fix: disable structcheck with go1.18 --- pkg/lint/lintersdb/manager.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/lint/lintersdb/manager.go b/pkg/lint/lintersdb/manager.go index 16492b2d04da..736bffd16146 100644 --- a/pkg/lint/lintersdb/manager.go +++ b/pkg/lint/lintersdb/manager.go @@ -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").