Skip to content

x/tools/gopls: document how to enable non-default staticcheck checks #66936

Closed
@hyangah

Description

@hyangah

Staticcheck checks can be configured with gopls's analyses settings, but this is not obvious from the current analyzer doc (https://github.com/golang/tools/blob/master/gopls/doc/analyzers.md). Settings doc has a link to the Staticcheck's official doc page (https://github.com/golang/tools/blob/master/gopls/doc/settings.md#staticcheck-bool), but how to enable/disable checks is not obvious.

Metadata

Metadata

Assignees

Labels

DocumentationIssues describing a change to documentation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.ToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions