Skip to content

Use curly bodies for statements except one-line ifs #22001

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

Closed
munificent opened this issue Jan 6, 2015 · 1 comment
Closed

Use curly bodies for statements except one-line ifs #22001

munificent opened this issue Jan 6, 2015 · 1 comment
Assignees
Labels
closed-invalid Closed as we don't believe the reported issue is generally actionable devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. type-enhancement A request for a change that isn't a bug

Comments

@munificent
Copy link
Member

Moved over here from: dart-lang/dart_style#118

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.

@pq
Copy link
Member

pq commented Feb 4, 2015

Migrated (back) to github: https://github.com/dart-lang/dart_lint/issues/5


Added Invalid label.

@munificent munificent added Type-Enhancement legacy-area-analyzer Use area-devexp instead. devexp-linter Issues with the analyzer's support for the linter package closed-invalid Closed as we don't believe the reported issue is generally actionable labels Feb 4, 2015
@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed type-enhancement labels Mar 1, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-invalid Closed as we don't believe the reported issue is generally actionable devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

3 participants