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
Hixie
changed the title
dartfmt doesn't like 'if' flow control statements without blocks
dartfmt doesn't like 'if' flow control statements without blocks (FIXED)
Aug 24, 2016
The following code is easy to read: you have three clear conditions (t=0, t=1, and other), and in each case you can clearly see that it sets
value
.The formatter turns it into:
...which isn't as readable.
A similar case:
Formatter says:
...which is nowhere near as readable.
Here's a case where it's better to go over the 80 char limit than try to wrap (see #450):
Currently the formatter turns that into:
The text was updated successfully, but these errors were encountered: