-
-
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
skip-dirs works with some linters and not with others #913
Comments
I'm not sure that would be the case. It happens when I run only one linter at a time. I've tried each of them individually. |
Thank you for input, you are right. |
If it just ignored issues for those and returned a 0 instead of a non-zero result, that would be fine, but even when the only issue that is found is in one of those dirs, a non-zero result is returned. |
Through further testing (including tweaking the skip-dirs values and changing default concurrency to 8, I have been able to get all linters except the following 9 in the repo's current .golangci.yml file to work:
|
This error doesn't happen f.e. when swapping |
Do you have any progress on this issue? In my case, this bug blocks the usage
|
#1466 could be linked to this as well, maybe? |
I too am experiencing this problem 😞 |
I am also experiencing this issue. I am using golangci-lint version 1.36, and it's completely unusable. I've tried commenting out each linter, but none of them work bc they give the warnings for auto_generated files. |
I agree this is completly unusable with this bug |
Any update about this? I'm using golangci v1.42.0 on macoos.
I'm getting the following error running the linter:
I currently have these go file inside the node_modules directory
The one with the problem seems to be Here's the complete output with
And my goenv
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@emmaLP is that the whole error message? I had a similar problem but the whole error message included info about a file and some timezones. This helped: #3087 |
@4k1k0 that was the whole error message. |
Close in favor of #4360 - Feel free to subscribe there for updates. |
Thank you for creating the issue!
Please include the following information:
Version of golangci-lint
Config file
Go environment
Verbose output of running
Linters that adhere to skip-dirs
Linters that ignore to skip-dirs
Perhaps that there is a reason that skip-dirs is ignored with some linters and a non-zero value is returned for errors in those directories, but I cannot seem to find one. Any help would be very welcome.
The text was updated successfully, but these errors were encountered: