Skip to content

[SwiftFixIt] Allow filtering diagnostics by category #8620

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 6, 2025

Conversation

xedin
Copy link
Contributor

@xedin xedin commented May 5, 2025

Motivation:

Helps with applying only certain fix-its i.e. for features in migration mode or concurrency.

Modifications:

  • Add categories: Set<String> parameter to SwiftFixIt initializers that is defaulted to [].

Result:

swift migrate can use this to filter based on the feature categories to avoid applying unrelated fix-its.

Helps with applying only certain fix-its i.e. for features in
migration mode or concurrency.
@xedin
Copy link
Contributor Author

xedin commented May 5, 2025

@swift-ci please test

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

3 participants