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
I spent some time looking into this, but wasn't able to come up with a fix that didn't push a lot of other formatting around in generally worse ways. The main problem is that this interacts poorly with the special rule that cascades indent deeper than a preceding method chain even though technically the method chain is a subexpression:
We can possibly lose that special rule. I ran it on a corpus and I can't honestly say I think the rule carries its weight. However, a side effect of that is that a lot of expressions preceding cascades go from +2 indentation to +4 because now they get normal expression indentation.
I'm not sure if that's a net win, so sitting on this for now.
The forthcomingtall style moves ) to the next line when an argument list which happens to resolve the weird formatting here too. With the new style, you get:
The formatter produces this output:
Note that the last cascade (
..method()
) is not on the same receiver as the previous ones even though it's indented the same.The text was updated successfully, but these errors were encountered: