go/gopls/internal/hooks
Robert Findley 7cc24c2ba3 gopls: upgrade staticcheck to v0.3.0
Upgrade staticcheck to v0.3.0 to pick up support for generics. Since
this version only supports Go 1.17+, increase the version at which we
install staticcheck to 1.17 (from 1.15). This change is likely to cause
confusion for users on Go 1.16, so show a warning when setting
the "staticcheck" option to an unsupported value. Slightly refactor our
setting of options along the way.

Fixes golang/go#52159

Change-Id: Id9b4cee340e31988c64ca712d98573343aaf5848
Reviewed-on: https://go-review.googlesource.com/c/tools/+/396974
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Trust: Peter Weinberger <pjw@google.com>
Reviewed-by: Peter Weinberger <pjw@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
2022-04-07 14:59:24 +00:00
..
analysis.go gopls: upgrade staticcheck to v0.3.0 2022-04-07 14:59:24 +00:00
analysis_117.go gopls: upgrade staticcheck to v0.3.0 2022-04-07 14:59:24 +00:00
diff.go internal/lsp/source: compute imports text edits from scratch 2021-07-22 17:13:07 +00:00
diff_test.go gopls: use go-diff for edit generation 2019-10-10 20:18:25 +00:00
gen-licenses.sh gopls/internal/hooks: improve license file test 2021-01-26 00:28:59 +00:00
hooks.go internal/lsp/command: add RunVulncheckExp 2022-03-24 19:25:58 +00:00
licenses.go gopls/internal/hooks: improve license file test 2021-01-26 00:28:59 +00:00
licenses_test.go gopls: upgrade staticcheck to v0.3.0 2022-04-07 14:59:24 +00:00