Skip to content

Conversation

@nathannewyen
Copy link

Adds a quick fix that sorts dependencies alphabetically in pubspec.yaml when the sort_pub_dependencies lint is triggered.

Changes

  • Added sortDependencies FixKind
  • Implemented _sortPubDependencies() in PubspecFixGenerator
  • Added tests

Fixes #47958

Adds a quick fix that sorts dependencies alphabetically in pubspec.yaml
when the sort_pub_dependencies lint is triggered.

Fixes dart-lang#47958
@copybara-service
Copy link

Thank you for your contribution! This project uses Gerrit for code reviews. Your pull request has automatically been converted into a code review at:

https://dart-review.googlesource.com/c/sdk/+/469400

Please wait for a developer to review your code review at the above link; you can speed up the review if you sign into Gerrit and manually add a reviewer that has recently worked on the relevant code. See CONTRIBUTING.md to learn how to upload changes to Gerrit directly.

Additional commits pushed to this PR will update both the PR and the corresponding Gerrit CL. After the review is complete on the CL, your reviewer will merge the CL (automatically closing this PR).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a fix for the sort_pub_dependencies lint

1 participant