dart-lang / dart_style

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

Add some regression tests from the old prototype. #1435

Closed munificent closed 5 months ago

munificent commented 5 months ago

When I was working on the prototype implementation, I ran it on a bunch of codebases. I got it working as well as I could but I sometimes noted cases where the prototype did the wrong thing. I held onto them to make sure that the real implementation is better.

These are most of those cases. I still have a few where the new formatter needs a tweak or two to get it right, but these ones are already doing the right thing.