Skip to content

[Commands] Adjust swift package migrate to only apply fix-its to th… #8629

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2025

Conversation

xedin
Copy link
Contributor

@xedin xedin commented May 7, 2025

…e selected features

Motivation:

Use new ability of SwiftFixIt to filter by category, to make sure that the command only applies fix-its that are related to the selected features and nothing else.

Modifications:

  • swift package migrate - Add an argument to SwiftFixIt API that lists all of the features selected by the user.

Result:

Even if there are other warnings with a single fix-it the command is not going to apply them i.e. for var -> let or <name> to _.

…e selected features

Use new ability of `SwiftFixIt` to filter by category, to make sure
that the command only applies fix-its that are related to the selected
features and nothing else.
@xedin
Copy link
Contributor Author

xedin commented May 7, 2025

@swift-ci please test

@xedin xedin merged commit d368cb0 into swiftlang:main May 7, 2025
6 checks passed
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.

2 participants