fix after #533: fix comment and goimports
This commit is contained in:
parent
78079be927
commit
9d8eb16395
@ -1,9 +1,10 @@
|
||||
package golinters
|
||||
|
||||
import (
|
||||
"github.com/golangci/golangci-lint/pkg/golinters/goanalysis"
|
||||
"github.com/timakin/bodyclose/passes/bodyclose"
|
||||
"golang.org/x/tools/go/analysis"
|
||||
|
||||
"github.com/golangci/golangci-lint/pkg/golinters/goanalysis"
|
||||
)
|
||||
|
||||
func NewBodyclose() *goanalysis.Linter {
|
||||
|
@ -90,7 +90,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
|
||||
WithAlternativeNames("vet", "vetshadow").
|
||||
WithURL("https://golang.org/cmd/vet/"),
|
||||
linter.NewConfig(golinters.NewBodyclose()).
|
||||
WithSSA(). // TODO: extract from the linter config and don't build SSA, just use LoadAllSyntax mode
|
||||
WithSSA().
|
||||
WithPresets(linter.PresetPerformance, linter.PresetBugs).
|
||||
WithSpeed(4).
|
||||
WithURL("https://github.com/timakin/bodyclose"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user