mirror of https://github.com/golang/go.git
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>
This commit is contained in:
parent
6edc0a871e
commit
39095c1d17
|
|
@ -17,6 +17,10 @@ func updateAnalyzers(options *source.Options) {
|
|||
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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue