-
Notifications
You must be signed in to change notification settings - Fork 8
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
Exit with code 1 when errors are found #59
Exit with code 1 when errors are found #59
Conversation
Hi @illright I had to change the autofixing logic a bit to accomplish this task. Issues that I noticed so far:
I saw open tickets to improve the autofix mechanism and realized that this was a separate complex problem within this project. Possible issues/improvements that I think are worth discussion:
I think we need to manipulate some kind of virtual file system and then when we are sure that a needed fix (or a sequence of fixes, e.g. "move" -> "rename" -> "fix import statements inside") is possible to apply without errors, we commit it to the real FS. Let's create a separate discussion. Because it feels like a complex problem that needs a lot of discussions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you! As for the auto-fix engine, yes, it's a whole other story. I have some ideas in mind about what to do with it, but let's talk about it in one of the relevant issues.
Could you also add a patch changeset for Steiger please?
Oh, yes, sorry. I forgot to push that commit yesterday |
@illright |
Resolves #56