Lint to use curly bodies for statements except one-line ifs (Style Guide). #57151
Labels
analyzer-linter
Issues with the analyzer's support for the linter package
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
good first issue
A good starting issue for contributors (issues with this label will appear in /contribute)
linter-lint-request
type-enhancement
A request for a change that isn't a bug
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: