diff --git a/gopls/internal/hooks/analysis.go b/gopls/internal/hooks/analysis.go index 3a4c00fd93..f46a93f446 100644 --- a/gopls/internal/hooks/analysis.go +++ b/gopls/internal/hooks/analysis.go @@ -17,11 +17,15 @@ func updateAnalyzers(options *source.Options) { options.AddDefaultAnalyzer(a) } for _, a := range staticcheck.Analyzers { - // This check conflicts with the vet printf check (golang/go#34494). - if a.Name == "SA5009" { - continue + switch a.Name { + case "SA5009": + // This check conflicts with the vet printf check (golang/go#34494). + case "SA5011": + // This check relies on facts from dependencies, which + // we don't currently compute. + default: + options.AddDefaultAnalyzer(a) } - options.AddDefaultAnalyzer(a) } for _, a := range stylecheck.Analyzers { options.AddDefaultAnalyzer(a)