diff --git a/gopls/internal/hooks/analysis.go b/gopls/internal/hooks/analysis.go index 8e300f3991..629bdc8669 100644 --- a/gopls/internal/hooks/analysis.go +++ b/gopls/internal/hooks/analysis.go @@ -5,7 +5,6 @@ package hooks import ( - "golang.org/x/tools/go/analysis/passes/nilness" "golang.org/x/tools/internal/lsp/source" "honnef.co/go/tools/simple" "honnef.co/go/tools/staticcheck" @@ -27,10 +26,5 @@ func updateAnalyzers(options *source.Options) { for _, a := range stylecheck.Analyzers { options.Analyzers[a.Name] = a } - // Add the nilness analyzer only for users who have enabled staticcheck. - // The assumption here is that a user who has enabled staticcheck will - // be fine with gopls using significantly more memory. nilness requires - // SSA, which makes it expensive. - options.Analyzers[nilness.Analyzer.Name] = nilness.Analyzer } }