Skip to content

Commit

Permalink
fix after #533: fix comment and goimports
Browse files Browse the repository at this point in the history
  • Loading branch information
jirfag committed Jun 9, 2019
1 parent 78079be commit 9d8eb16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/golinters/bodyclose.go
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/lint/lintersdb/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 9d8eb16

Please sign in to comment.