danchengash / pubspec-dependency-sorter

This package helps developer to sort the flutter/dart packages and plugins alphabetically, This makes it easier when managing too many packages and when working with teams
BSD 3-Clause "New" or "Revised" License
18 stars 9 forks source link

doesn't sort dependencies with keys #11

Open AdrienLemaire opened 2 years ago

AdrienLemaire commented 2 years ago

Thanks for making this package! I keep getting the sort_pub_dependency error after running flutter pub run pubspec_dependency_sorter

What I expect:

dev_dependencies: 
  build_runner: ^2.2.1
  fake_cloud_firestore: ^1.3.1
  flutter_test: 
    sdk: flutter
  freezed: ^2.1.0+1
  json_serializable: ^6.4.1
  mocktail: ^0.3.0
  pubspec_dependency_sorter: ^0.0.2
  test: ^1.14.4
  very_good_analysis: ^3.1.0

What I get:

Another note: It would be great if the package didn't remove inline comments, so I can keep useful documentation in the file.

danchengash commented 2 years ago

Thanks for the feature requests and great comments. I will work on them. On the issue you are facing, you can manually correct the affected package before i work on the issue

DanOxlade commented 1 year ago

Hey, I also have the same issue, multi-line dependencies don't get sorted correctly.

Otherwise, this package is awesome!

Yetispapa commented 11 months ago

Any update @danchengash?

shinriyo commented 3 months ago

They are not sorted also.

flutter:
  sdk: flutter
flutter_localizations:
  sdk: flutter
shinriyo commented 3 months ago
flutter_test:
  sdk: flutter

It is also ..

shinriyo commented 3 months ago

"flutter" dependency not sorted correctly #15 ticket has the problems.