-
Notifications
You must be signed in to change notification settings - Fork 73
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
Operators starting a line in an expression with parentheses #255
Comments
So do you mean the operator should be moved one line up or? |
I'm not sure, maybe if we had a rule in tidystyle that forbids starting a line with a binary operator? |
I think there is no rule. Should I propose one or is is a sufficiently rare case? |
Good idea. |
Issue filed. |
In tidyverse/style#45, it was not considered to be worth to mention in the style guide since such lengthy conditions are considered to be undesirable in the first place. |
So I suggest to either move the infix operators one line up anyways (for |
Can we leave them unchanged and just add a level of indention? |
Ok, I think we could, it's just we have never done it that way so far I think. So we'd have to add one level of indention only to the token |
But then it seems easy to also add indention for the operator token itself, I understand it will be inactive in most cases? |
And this probably generalizes to other operators? So, if we are processing |
No, the triggering token itself does (currently) not get indention, only the ones following it. So in your example (to be precise in {
2
} To become {
2
} |
However, your case seems a special case. Need to look into it further. |
This is rather low priority, just mentioning it for completeness.
The text was updated successfully, but these errors were encountered: