We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e479d01 commit 7a21e30Copy full SHA for 7a21e30
gopls/internal/hooks/analysis.go
@@ -5,7 +5,6 @@
5
package hooks
6
7
import (
8
- "golang.org/x/tools/go/analysis/passes/nilness"
9
"golang.org/x/tools/internal/lsp/source"
10
"honnef.co/go/tools/simple"
11
"honnef.co/go/tools/staticcheck"
@@ -27,10 +26,5 @@ func updateAnalyzers(options *source.Options) {
27
26
for _, a := range stylecheck.Analyzers {
28
options.Analyzers[a.Name] = a
29
}
30
- // Add the nilness analyzer only for users who have enabled staticcheck.
31
- // The assumption here is that a user who has enabled staticcheck will
32
- // be fine with gopls using significantly more memory. nilness requires
33
- // SSA, which makes it expensive.
34
- options.Analyzers[nilness.Analyzer.Name] = nilness.Analyzer
35
36
0 commit comments