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
...because the formatter decides it fits on one line given the provided line length.
Because the expressions are parallel, the code is more readable as originally written with the line break. The line break is significant, and either dartfmt should leave it there, or it should notice that the expression is more readable when split in this way.
The text was updated successfully, but these errors were encountered:
Hixie
changed the title
Short compound expressions in return statements format poorly
Short compound expressions in return statements format poorly (WONTFIX)
Sep 1, 2016
This is similar to #525 but relates specifically to expressions that would fit on one line but are more readable when split across multiple lines.
This code:
...turns into the less readable:
...because the formatter decides it fits on one line given the provided line length.
Because the expressions are parallel, the code is more readable as originally written with the line break. The line break is significant, and either dartfmt should leave it there, or it should notice that the expression is more readable when split in this way.
The text was updated successfully, but these errors were encountered: