-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Lint to use curly bodies for statements except one-line ifs (Style Guide). #57151
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
Does this issue include a "quick fix" to convert overlong one-line if statements to block statements? |
I've been treating lint warnings and fixes as separate requests but maybe we should consolidate. In any event, your comment is timely because my current focus is getting the linter plugged into the analysis server which is the key to getting fixes implemented (#87) . Stay tuned! |
My sense is this one is largely subsumed by We can re-open if anyone feels strongly otherwise... |
Migrated from dartbug.com/22001:
Should warn or fix if a for, while, or else clause does not have a curly brace body. It should also flag the then clause of an if if it doesn't fit on a single line.
The text was updated successfully, but these errors were encountered: