Skip to content

Commit 83d7619

Browse files
committed
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>
1 parent d815cba commit 83d7619

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

gopls/doc/settings.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ Default: `{}`.
307307
**This setting is experimental and may be deleted.**
308308

309309
staticcheck enables additional analyses from staticcheck.io.
310+
These analyses are documented at [here](https://staticcheck.io/docs/checks/).
310311

311312
Default: `false`.
312313

internal/lsp/source/api_json.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/lsp/source/options.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ type DiagnosticOptions struct {
402402
Analyses map[string]bool
403403

404404
// Staticcheck enables additional analyses from staticcheck.io.
405+
// These analyses are documented at [here](https://staticcheck.io/docs/checks/).
405406
Staticcheck bool `status:"experimental"`
406407

407408
// Annotations specifies the various kinds of optimization diagnostics

0 commit comments

Comments
 (0)