-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
We also need support AutoCorrect: contextual
option for LSP
#1883
Comments
As far as I can tell, this is the current state of autocorrection for the different cops, sorted by “Always”, “Always (unsafe)”, “No”: Always
Always (Unsafe)
No
Should we start listing which ones we want to be contextual? |
Basically, I think |
What about cops like RSpec/ScatteredLet and RSpec/ScatteredSetup, wouldn’t they potentially move the code a person is currently editing? |
Hold on, when are LSP corrections applied? Only when a file is saved, right?
which seems to suggest corrections are applied before saving, while still typing. |
I think the automatic correction is done when saving to a file. I think the following |
AutoCorrect: contextual
option for LSP rubocop#12657For example, if
RSpec/Focus
is enabled, we will always havefocus
removed by the LSP.https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecfocus
The text was updated successfully, but these errors were encountered: