dart-lang / dart_style

An opinionated formatter/linter for Dart code
https://pub.dev/packages/dart_style
BSD 3-Clause "New" or "Revised" License
650 stars 121 forks source link

Always split switch expressions #1537

Closed munificent closed 3 months ago

munificent commented 3 months ago

I figured that since other comma-delimited expression forms don't split if they don't have to, switch expressions should be the same. But I went and checked on a huge corpus and every single place where a switch expression wasn't split was clearly much worse than splitting it would be.

Fix #1529.