fix after #533: fix comment and goimports

This commit is contained in:
Denis Isaev 2019-06-09 13:08:46 +03:00
parent 78079be927
commit 9d8eb16395
No known key found for this signature in database
GPG Key ID: A36A0EC8E27A1A01
2 changed files with 3 additions and 2 deletions

View File

@ -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 {

View File

@ -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"),