Skip to content

Commit

Permalink
gopls : add a mention of staticcheck to settings documentation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
pjweinbgo committed Sep 6, 2022
1 parent d815cba commit 83d7619
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions gopls/doc/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down
2 changes: 1 addition & 1 deletion internal/lsp/source/api_json.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions internal/lsp/source/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 83d7619

Please sign in to comment.