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
Style/InverseMethods not being safe in auto-correct #6969
Labels
Comments
Thanks for the report! It is likely better if we don't register an offense at all if there's a |
@Drenmi i think that's a fair approach 🙌 |
Hi, I'd be happy to take fixing this, if no one else is on it already. |
8 tasks
koic
added a commit
that referenced
this issue
May 10, 2019
[Fix #6969] Fix a false positive in `Style/InverseMethods`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
running Style/InverseMethods should consider return arguments of next statements
Actual behavior
it did change it to a result that's not the same
Steps to reproduce the problem
Simplified example:
gets autocorrected to
Which is not the same result:
Console:
RuboCop version
The text was updated successfully, but these errors were encountered: