Open kinoute opened 8 years ago
Hi!
Currently the plugin does not have this functionality, but it would be a nice addition to it :+1:
👍
:+1:
+1
Any news on this? It's a must have feature
add this to your sublime user key bindings.
{ "keys": ["super+shift+s"], "command": "rubocop_auto_correct" }
doesn't run on normal save, only shift+ version
@amazing-jay Funny you post here today, I was looking at this issue again earlier this morning, 5 years after my initial post.
I found this fork that adds the "auto-correct on save" feature: https://github.com/pabla/sublime_rubocop/commit/513c130896f54fda123fe151e080d60ca8b59863
I edited the plugin file manually and it works nicely.
Hey,
I'm not sure it's implemented but would it be possible to auto correct the current file when saving, just like other plugins do (CodeFormatter etc)? It works well by using the command palette ("Rubocop: auto correct current file") but I'd like to do it automatically when saving. I didn't find what to add in the settings file to do so, am I missing something?
Here's my settings file:
(I still use SublimeLinter for linting).
Cheers