You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In styler, we were wondering whether it would make sense to add a rule to the style guide that says
If you use infix operators (such as |, & etc.) and you decide to break the line around them, the
line break should occur after the infix operator, not before it.
# goodif (a_long_condition&and_another_long_condition&one_more) {
# do something
}
# badif (a_long_condition&and_another_long_condition&one_more) {
# do something
}
Or whether conditions should not be that long anyways so the problem does not occur and / or it is an edge case not worth mentioning.
In any case, we would probably implement a rule in styler that moves the infix operator one line up to change # bad above to # good.
cc: @krlmlr.
The text was updated successfully, but these errors were encountered:
In styler, we were wondering whether it would make sense to add a rule to the style guide that says
Or whether conditions should not be that long anyways so the problem does not occur and / or it is an edge case not worth mentioning.
In any case, we would probably implement a rule in styler that moves the infix operator one line up to change
# bad
above to# good
.cc: @krlmlr.
The text was updated successfully, but these errors were encountered: