go/gopls/internal/regtest/misc
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
..
call_hierarchy_test.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
configuration_test.go gopls: update dependencies following the v0.10.0 release 2022-11-04 16:52:27 +00:00
debugserver_test.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
definition_test.go gopls/internal: support renaming packages with int. test variants 2022-10-20 17:36:38 +00:00
embed_test.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
extract_test.go gopls: fix out of bounds bug in extract 2022-09-21 16:48:39 +00:00
failures_test.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
fix_test.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
formatting_test.go gopls: update dependencies following the v0.10.0 release 2022-11-04 16:52:27 +00:00
generate_test.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
highlight_test.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
hover_test.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
import_test.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
imports_test.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
link_test.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
misc_test.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
multiple_adhoc_test.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
references_test.go gopls/internal/lsp/source: find references in test packages 2022-10-11 14:54:39 +00:00
rename_test.go gopls/internal: support renaming packages with int. test variants 2022-10-20 17:36:38 +00:00
semantictokens_test.go gopls/internal/regtest/misc: fix use of the AfterChange API 2022-11-16 15:56:32 +00:00
settings_test.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
shared_test.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
staticcheck_test.go gopls/internal/lsp: tolerate missing end position in RelatedInformation 2022-10-19 18:04:39 +00:00
vendor_test.go gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
vuln_test.go gopls/internal/lsp/mod: fix unaffecting vuln diagnostics msgs 2022-11-18 15:58:55 +00:00
workspace_symbol_test.go gopls/internal/lsp/cache: add support for loading standalone main files 2022-10-13 15:07:40 +00:00