-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 not correcting AndOr offences #800
Comments
Works for me when I tried it with the code you've posted. |
Hm, I tried it on a second machine with the same result. Perhaps I use it incorrectly. Will get back to you later on that. Thank you. |
@AlexVPopov did you figure out what you did wrong? |
Yes, I had some wrong settings in |
It's not that it's not enabled. It sees the error and says it fixed it, but it hasn't. It fixed it for some the first run, but nothing after that. Will try to figure out the difference between the ones in did fix and the ones it didn't later. |
Your problem is actually caused by a limitation in RuboCop with regard to this particular check. We cannot replace all |
Yes! RuboCop should not say |
[Fix #800] Do not report [Corrected] if correction wasn't done
I want to correct a single offence, so I run rubocop like that:
I get the output:
But the file does not get changed. Do I need to reload something to see the change? I also tried running:
The text was updated successfully, but these errors were encountered: