-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
[Feature Request] More friendly auto-correct features #21
Comments
All of those things are trivial to implement, if only I had any free time these days... :-) |
Perhaps also an even more cautious auto-correct would be possible where only changes that involve lines that are changed in git would be auto-corrected. But perhaps that should be a suggestion for upstream rubocop instead, first. |
My hacked together solution from two years ago when I opened this issue has now evolved into a fully fledged package called @yxhuvud While it's not as intelligent as only correcting lines which are modified in git, @bbatsov I'd appreciate your thoughts on Edit: Nevermind on the name change, probably best to leave it as the |
Update: I've achieved the goal of this feature request with a custom package called rubocopfmt. I will leave this issue open for others to see until @bbatsov feels it's appropriate to close it.
So due my lack of elisp skills, I have a badly hacked together set of tweaks to rubocop-mode that nearly makes the auto-correct stuff work the way I want: siren-rubocop.el
I'd love for something like these features to be available in rubocop-mode itself. The key features I'm after are:
As for my own hack, the only thing that's not working correctly is the instant revert/update when you run auto-correct. As far as I can figure I'm guessing
compilation-start
is async so therevert-buffer
call fires after emacs has saved the file, but before rubocop has auto-corrected it.The text was updated successfully, but these errors were encountered: