-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
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
staticchecks errors are not reported #2049
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
Hello, FYI, the Can you provide a reproducible example? |
I created a reproducible example: package sandbox
import "github.com/onsi/gomega/types"
type variableMatcher struct {
name interface{}
}
func (v variableMatcher) Match(actual interface{}) (success bool, err error) {
panic("implement me")
}
func (v variableMatcher) FailureMessage(actual interface{}) (message string) {
panic("implement me")
}
func (v variableMatcher) NegatedFailureMessage(actual interface{}) (message string) {
panic("implement me")
}
// MatchXXX expects types.GomegaMatcher or passed name will be compared with gomega.Equal
func MatchVariableNode(name interface{}) types.GomegaMatcher {
return &variableMatcher{
name: name,
}
} The rule With the next release, you just have to add the following line in your configuration. issues:
exclude-use-default: false I repeat: the |
I added the Edit: I see, so it is ignoring |
Description of the problem
I have enabled
stylecheck
andstaticcheck
but errors from those linters are not reported. But when I tried to run staticcheck directly, errors are reported.When I run
staticcheck ./...
with followingstaticcheck.conf
file, I got this error:Version of golangci-lint
Config file
Go environment
Verbose output of running
Code example or link to a public repository
The text was updated successfully, but these errors were encountered: