-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Successful exit code (0) when typecheck error #529
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
thank you for reporting! I can't reproduce it on this example but I fixed it in #567 |
please, check it |
@jirfag Thank you, now I'm getting exit code 7 on that case |
AIf I use This is an issue for me when using v1.17.0
v1.16.0
|
Closing this as a duplicate of #276 to track adding support for failing with non-zero exit code on compilation errors. |
Thank you for creating the issue!
Please include the following information:
golangci-lint --version
(or git commit if you don't use binary distribution): golangci-lint has version 1.16.0 built from 97ea1cb on 2019-03-31T19:48:46Zcat .golangci.yml
emptygo version && go env
golangci-lint run -v
There's an error while linting but golangci-lint exit code is still 0.
Error:
If i right understood it works so cause of https://github.com/golangci/golangci-lint/blob/master/pkg/golinters/typecheck.go#L49
Such errors are printed but not included into the results' list.
Snippet from the checked code that triggers this error:
So my question does it expected behavior of linter that error doesn't cause failed exit code?
And is there any options to get this error triggers error code?
The text was updated successfully, but these errors were encountered: