gopls : add a mention of staticcheck to settings documentation

Fixes golang/go#52874

Change-Id: I04664154d68e31f48234c13aefe8470b09f0413e
Reviewed-on: https://go-review.googlesource.com/c/tools/+/428595
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Peter Weinberger <pjw@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
This commit is contained in:
Peter Weinberger 2022-09-06 10:27:50 -04:00
parent d815cba582
commit 83d76192b2
3 changed files with 3 additions and 1 deletions

View File

@ -307,6 +307,7 @@ Default: `{}`.
**This setting is experimental and may be deleted.**
staticcheck enables additional analyses from staticcheck.io.
These analyses are documented at [here](https://staticcheck.io/docs/checks/).
Default: `false`.

View File

@ -461,7 +461,7 @@ var GeneratedAPIJSON = &APIJSON{
{
Name: "staticcheck",
Type: "bool",
Doc: "staticcheck enables additional analyses from staticcheck.io.\n",
Doc: "staticcheck enables additional analyses from staticcheck.io.\nThese analyses are documented at [here](https://staticcheck.io/docs/checks/).\n",
Default: "false",
Status: "experimental",
Hierarchy: "ui.diagnostic",

View File

@ -402,6 +402,7 @@ type DiagnosticOptions struct {
Analyses map[string]bool
// Staticcheck enables additional analyses from staticcheck.io.
// These analyses are documented at [here](https://staticcheck.io/docs/checks/).
Staticcheck bool `status:"experimental"`
// Annotations specifies the various kinds of optimization diagnostics