From d4f63a20170c486f5725ef991fe49064cf50fc91 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Sat, 2 Mar 2024 22:39:10 +0100 Subject: [PATCH] chore: minor unrelated changes --- pkg/config/loader.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/config/loader.go b/pkg/config/loader.go index ae2667a8c1147..c2f0b8bb7444f 100644 --- a/pkg/config/loader.go +++ b/pkg/config/loader.go @@ -94,13 +94,14 @@ func (l *Loader) handleGoVersion() { l.cfg.LintersSettings.ParallelTest.Go = l.cfg.Run.Go - trimmedGoVersion := trimGoVersion(l.cfg.Run.Go) - - l.cfg.LintersSettings.Gocritic.Go = trimmedGoVersion if l.cfg.LintersSettings.Gofumpt.LangVersion == "" { l.cfg.LintersSettings.Gofumpt.LangVersion = l.cfg.Run.Go } + trimmedGoVersion := trimGoVersion(l.cfg.Run.Go) + + l.cfg.LintersSettings.Gocritic.Go = trimmedGoVersion + // staticcheck related linters. if l.cfg.LintersSettings.Staticcheck.GoVersion == "" { l.cfg.LintersSettings.Staticcheck.GoVersion = trimmedGoVersion