-
-
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
Indentation of if
when using the return value
#661
Comments
Yes. |
Thanks 😸 |
No probelm. Well... some. There are two cops that report indentation related offences for the example code:
The double reporting is not a big problem as long as we consider the inspected code to be incorrect, but if we want to allow it through configuration settings, then having to change two configuration parameters in two different cops becomes a problem IMO. The way I want to solve this is to introduce a configuration parameter in the |
From a user perspective: Sounds good to me 😄 |
@jonas054 This sounds reasonable, but there's something more to consider - the |
Separate cop sounds like a good idea. |
Thank you so much 👍 |
Should have been added in PR rubocop#665.
Currently, the following code is not ok in rubocop's opinion:
What Rubocop wants is the following:
Can I configure Rubocop to take the first version instead? Because I really prefer that!
Thanks for Rubocop 👍 It helps a lot 😸
The text was updated successfully, but these errors were encountered: