-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Error reported by golint binary but not golangci-lint #295
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
Comments
Ah, just found #88 when searching again. Let me see if I can get that fixed-up on my workstation. |
hi! |
I had this issue too and with |
I've realized that when using it in vim with Ale I see warnings with types declared in other files of the same package. For example:
package foo
type Data []byte
package foo
type Envelop struct {
ID string
Data Data
} I have a warning in |
@ifraixedes please make an issue in Ale: it could be when editor runs golangci-lint on the file, but not on the directory containing file. If golangci-lint gets only one file as argument is analyzes only this file |
Sorry for forgetting to close this. Enabling that setting in my config took care of it. 👍 |
I'm currently invoking
golangci-lint
as part of the Go integration with my editor, and I noticed thatgolint
failures weren't being reported. I'm testing this against a single file in my repomocks/mocks.go
. If I invokegolint
directly it works just fine.Please include the following information:
golangci-lint --version
(or git commit if you don't use binary distribution)cat .golangci.yml
go version && go env
golangci-lint run -v
Here is me running
golint
manually:The text was updated successfully, but these errors were encountered: