Skip to content

Commit eedbbfe

Browse files
committed
review
1 parent bbda6e6 commit eedbbfe

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

pkg/golinters/internal/staticcheck_common.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,8 @@ import (
99
scconfig "honnef.co/go/tools/config"
1010

1111
"github.com/golangci/golangci-lint/pkg/config"
12-
"github.com/golangci/golangci-lint/pkg/logutils"
1312
)
1413

15-
var debugf = logutils.Debug(logutils.DebugKeyMegacheck)
16-
1714
func SetupStaticCheckAnalyzers(src []*lint.Analyzer, checks []string) []*analysis.Analyzer {
1815
var names []string
1916
for _, a := range src {

pkg/logutils/logutils.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,10 @@ const (
6060
)
6161

6262
const (
63-
DebugKeyGoCritic = "gocritic" // Debugs `go-critic` linter.
64-
DebugKeyGovet = "govet" // Debugs `govet` linter.
65-
DebugKeyMegacheck = "megacheck" // Debugs `staticcheck` related linters.
66-
DebugKeyNolint = "nolint" // Debugs a filter excluding issues by `//nolint` comments.
67-
DebugKeyRevive = "revive" // Debugs `revive` linter.
63+
DebugKeyGoCritic = "gocritic" // Debugs `go-critic` linter.
64+
DebugKeyGovet = "govet" // Debugs `govet` linter.
65+
DebugKeyNolint = "nolint" // Debugs a filter excluding issues by `//nolint` comments.
66+
DebugKeyRevive = "revive" // Debugs `revive` linter.
6867
)
6968

7069
func getEnabledDebugs() map[string]bool {

0 commit comments

Comments
 (0)