Open ennc0d3 opened 1 year ago
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors.
Is there something that I can do to analyze, of course, I need help. Thanks
I'm experiencing this bug in cgo code as well.
Same here, also using cgo
: https://github.com/alexaandru/go-tree-sitter-bare/blob/v1.3.4/query.go#L216-L218
FWIW, before the last refactoring, I had the if ...; err != nil { return }
if clause in each case
in the switch
above and it errored out there as well.
Welcome
Description of the problem
When running golangci-lint with gocritic with uncheckedInlineErr for a simple go program with cgo enabled, golangci-lint is producing incorrect reporting,
Example,
The err, err2 variables are declared earlier and I have marked the statements where I expect gocritic to complain, but looking report we can see golangci-lint/gocritic seems to be confused.
When I tried the same with the
gocritic
standalone binary it doesn't report anything at all which is also weird.Maybe this is not the right way to invoke?
But I think anyway golangci-lint report is not working as expected or could it be because of some weird issues in my setup?
Thanks,
Version of golangci-lint
Configuration file
Go environment
Verbose output of running
Code example or link to a public repository