gopls/internal/hooks: ignore a duplicate analysis from staticcheck

Hardcoded for now. Will need a better approach if more of these come up.

Fixes golang/go#34494

Change-Id: Id442d68fa16d81e747ad5ec951fb6b80fdb65f94
Reviewed-on: https://go-review.googlesource.com/c/tools/+/215118
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
diff --git a/gopls/internal/hooks/analysis.go b/gopls/internal/hooks/analysis.go
index 0549b4f..629bdc8 100644
--- a/gopls/internal/hooks/analysis.go
+++ b/gopls/internal/hooks/analysis.go
@@ -17,6 +17,10 @@
 			options.Analyzers[a.Name] = a
 		}
 		for _, a := range staticcheck.Analyzers {
+			// This check conflicts with the vet printf check (golang/go#34494).
+			if a.Name == "SA5009" {
+				continue
+			}
 			options.Analyzers[a.Name] = a
 		}
 		for _, a := range stylecheck.Analyzers {