From 0bf0b0a4e319a19a68842ce7cee5680a0e795573 Mon Sep 17 00:00:00 2001 From: Sergey Vilgelm Date: Sun, 2 Aug 2020 14:59:16 -0500 Subject: [PATCH] Add WithAutofix flag for gofumpt linter config --- pkg/lint/lintersdb/manager.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/lint/lintersdb/manager.go b/pkg/lint/lintersdb/manager.go index ecdba895af9a..56fb7a10988b 100644 --- a/pkg/lint/lintersdb/manager.go +++ b/pkg/lint/lintersdb/manager.go @@ -197,6 +197,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config { WithURL("https://golang.org/cmd/gofmt/"), linter.NewConfig(golinters.NewGofumpt()). WithPresets(linter.PresetFormatting). + WithAutoFix(). WithURL("https://github.com/mvdan/gofumpt"), linter.NewConfig(golinters.NewGoimports()). WithPresets(linter.PresetFormatting).