dart-lang / dart_style

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

Reorganize the sources and tests to split out the short and tall files. #1423

Closed munificent closed 8 months ago

munificent commented 8 months ago

We're going to be supporting both the short and tall styles for at least a couple of Dart releases, so having all of the directories and files for both jumbled together is probably silly.

This moves all of the short style test cases under test/short/ and the tall test cases to test/tall/.

It takes all of the source files and directories under src/ that are specific the short style and puts them under src/short/. The source files that are used by both styles or only by the tall style stay where they are.

There are no other changes (except a couple of tweaks to the test util code since now we can tell whether a test is short or tall style based on the file path).