File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11package golinters
22
33import (
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
910func NewBodyclose () * goanalysis.Linter {
Original file line number Diff line number Diff 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" ),
You can’t perform that action at this time.
0 commit comments