mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
Feature/enable autofix on whitespace (#674)
The whitespace linter was added in #673. Enable it and fix found issues. Add auto-fixing to the whitespace linter.
This commit is contained in:
parent
c7dee2c0b2
commit
f1c1dbfab4
15 changed files with 152 additions and 37 deletions
|
@ -245,6 +245,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
|
|||
linter.NewConfig(golinters.Whitespace{}).
|
||||
WithPresets(linter.PresetStyle).
|
||||
WithSpeed(10).
|
||||
WithAutoFix().
|
||||
WithURL("https://github.com/ultraware/whitespace"),
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue