Skip to content

Commit 3aa04f5

Browse files
author
Sergey Vilgelm
authored
Add WithAutofix flag for gofumpt linter config (#1281)
1 parent 4354a64 commit 3aa04f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/lint/lintersdb/manager.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
197197
WithURL("https://golang.org/cmd/gofmt/"),
198198
linter.NewConfig(golinters.NewGofumpt()).
199199
WithPresets(linter.PresetFormatting).
200+
WithAutoFix().
200201
WithURL("https://github.com/mvdan/gofumpt"),
201202
linter.NewConfig(golinters.NewGoimports()).
202203
WithPresets(linter.PresetFormatting).

0 commit comments

Comments
 (0)