Skip to content
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

Auto_correct on save #43

Open
kinoute opened this issue Apr 26, 2016 · 7 comments
Open

Auto_correct on save #43

kinoute opened this issue Apr 26, 2016 · 7 comments

Comments

@kinoute
Copy link

kinoute commented Apr 26, 2016

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:

{
"mark_issues_in_view": false,
"show_auto_correct_warning": false
}

(I still use SublimeLinter for linting).

Cheers

@pderichs
Copy link
Owner

Hi!

Currently the plugin does not have this functionality, but it would be a nice addition to it 👍

@Hendler
Copy link

Hendler commented Sep 23, 2016

👍

2 similar comments
@terry90
Copy link

terry90 commented May 30, 2017

👍

@gastonmorixe
Copy link

+1

@kinoute
Copy link
Author

kinoute commented Jan 6, 2019

Any news on this? It's a must have feature

@amazing-jay
Copy link

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

@kinoute
Copy link
Author

kinoute commented Jun 17, 2021

@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: pabla@513c130

I edited the plugin file manually and it works nicely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants