Skip to content

How to enable a check for staticcheck? #1493

Answered by stamblerre
konni2020 asked this question in Help
Discussion options

You must be logged in to vote

Are you using staticcheck through the gopls configuration? If so, you can add the following to your settings:

"gopls": {
    "analyses": {
        "ST1020": true,
    }
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@konni2020
Comment options

Answer selected by konni2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants