go/gopls/internal/regtest
Hana (Hyang-Ah) Kim 32a17c01dd gopls/internal/lsp/mod: fix unaffecting vuln diagnostics msgs
When there is no affecting vulns, we should not add the
warning-level message. This bug made informational diagnostic
messages look like

  "example.com/mod has vulnerabilities used in the code: .
example.com/mod has a vulnerability GO-2022-0493 that is not used
in the code."

Also, add a test case that checks the code with only non-affecting
vulnerability.

Change-Id: I88700a538495bc5c1c1a515bd1f119b2705964a3
Reviewed-on: https://go-review.googlesource.com/c/tools/+/450276
Reviewed-by: Suzy Mueller <suzmue@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
2022-11-18 15:58:55 +00:00
..
bench gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
codelens gopls: add codelens to reset upgrade diagnostics 2022-09-12 15:41:56 +00:00
completion gopls/internal: support renaming packages with int. test variants 2022-10-20 17:36:38 +00:00
debug gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
diagnostics gopls/internal/lsp: improve the Go version deprecation message 2022-10-27 13:53:43 +00:00
inlayhints gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
misc gopls/internal/lsp/mod: fix unaffecting vuln diagnostics msgs 2022-11-18 15:58:55 +00:00
modfile gopls/internal/regtest: make AfterChange do the awaiting 2022-11-15 16:13:28 +00:00
template gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
watch gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
workspace gopls/internal/regtest: make AfterChange do the awaiting 2022-11-15 16:13:28 +00:00