mirror of https://github.com/golang/go.git
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:
parent
d815cba582
commit
83d76192b2
|
|
@ -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`.
|
||||
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue