-
Notifications
You must be signed in to change notification settings - Fork 284
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
Run revive over a project with an invalid go source file #364
Comments
The current behavior is that of
|
Is it required to have the exact same behaviour as |
Hi @josemiguelmelo, thanks for filling the issue. Maybe we can add a command line flag to ask for skipping incorrect files. |
Sure, sure. That's why I was saying to add this incorrect file to the final results as a Failure, without failing the entire analysis. However, it gets a slightly different behaviour than the golint. Maybe the command line flag would be nice. With it, revive continues with same behaviour as golint, unless the user specifically uses the flag. |
Although configurability allows a level of flexibility, over time it can get hard to follow what's the combined behavior of different flags. If we decide to introduce this feature I'd prefer if we enable it by default for everyone. As @chavacava mentioned, ideally we want to keep compatibility with golint, but we can continue the discussion and collect more opinions. |
I agree that it can get hard over time. It would be just a way of continuing with the same behaviour as golint by default, except if the user specifies it. |
Hey! |
closed by #598 |
Hello,
Describe the bug
When you run Revive on a project that has an invalid go source file, it fails because it can't read the AST.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Instead of failing the entire analysis, Revive could add the AST parsing error to the revive failures list and output it at the end along with other failures.
Logs
Current output:
with exit status 1
The text was updated successfully, but these errors were encountered: