Skip to content

Commit 9d8eb16

Browse files
committed
fix after #533: fix comment and goimports
1 parent 78079be commit 9d8eb16

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pkg/golinters/bodyclose.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package golinters
22

33
import (
4-
"github.com/golangci/golangci-lint/pkg/golinters/goanalysis"
54
"github.com/timakin/bodyclose/passes/bodyclose"
65
"golang.org/x/tools/go/analysis"
6+
7+
"github.com/golangci/golangci-lint/pkg/golinters/goanalysis"
78
)
89

910
func NewBodyclose() *goanalysis.Linter {

pkg/lint/lintersdb/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
9090
WithAlternativeNames("vet", "vetshadow").
9191
WithURL("https://golang.org/cmd/vet/"),
9292
linter.NewConfig(golinters.NewBodyclose()).
93-
WithSSA(). // TODO: extract from the linter config and don't build SSA, just use LoadAllSyntax mode
93+
WithSSA().
9494
WithPresets(linter.PresetPerformance, linter.PresetBugs).
9595
WithSpeed(4).
9696
WithURL("https://github.com/timakin/bodyclose"),

0 commit comments

Comments
 (0)