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
Add spaces after flow control statements #126320
Conversation
Great work! I'm surprised there is not a lint that auto-catches this. cc @pq |
yeah. This is a sticky one. As a general rule we don't have lints that report things that would be corrected by the formatter. In general this works fine but bites Flutter since you aren't using the formatter. |
Could be something for the analyzer (dev/bots/analyze.dart) I guess? /cc @Hixie |
test-exempt: code refactor with no semantic change But if you wanted to update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Hixie I'll take a stab at adding a check in the analyzer then - I guess it's OK to include as part of this PR. |
This PR adds missing spaces after flow control statements (if, switch, for etc.) found in some *.dart and *.java files.
A check is also added in the analyzer.
Pre-launch Checklist
///
).