We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Steps to reproduce:
structcheck
unused
.golangci.yml
$ git diff diff --git a/.golangci.yml b/.golangci.yml index b85db5a..ca0deb1 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,7 +1,5 @@ linters: disable: - errcheck - - structcheck - - unused enable: - misspell
golangci-lint
$ golangci-lint run base_resources.go:11:2: `client` is unused (structcheck) client *PhloClient ^ base_resources.go:12:2: `resourceType` is unused (structcheck) resourceType BaseResource // Todo: Need this? ^
The text was updated successfully, but these errors were encountered:
@ppai-plivo, as per @rdkrish-plivo structcheck has known limitations of not handling embedded structs: opennota / check Also, there are open issues False positive for structcheck linter · Issue #1517 · golangci/golangci-lint and deprecating structcheck and other linters Deprecate varcheck, structcheck, and deadcode · Issue #1841 · golangci/golangci-lint
It is better to keep those lint checks disabled.
We can discuss internally, if we wish to take this up in the future.
Sorry, something went wrong.
No branches or pull requests
Steps to reproduce:
structcheck
andunused
linters by editing.golangci.yml
file:golangci-lint
:The text was updated successfully, but these errors were encountered: