-
Notifications
You must be signed in to change notification settings - Fork 125
dartfmt should add braces if it splits a long if line #664
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
Comments
+1, but I think @munificent generally prefers that dart_style only manipulate whitespace? |
Yeah. I'm definitely sympathetic but, at least for now, it's considered out of scope. This has more detail: |
I don't see a canonical issue discussing adding braces as a The scope of the formatter has increased since we added |
Yeah, now that we have
|
IMO no it shouldn't. |
Closing this since we're removing |
@devoncarew
Tested on 2.0.0-dev.16.0.
If dartfmt sees a line like this:
It will change it to:
I think it would be nice if this added braces.
The text was updated successfully, but these errors were encountered: