Skip to content
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

Some swift-format lint fixes #1721

Merged
merged 2 commits into from
Sep 24, 2024
Merged

Some swift-format lint fixes #1721

merged 2 commits into from
Sep 24, 2024

Conversation

thomasvl
Copy link
Collaborator

Seems like swift-format failed to fix some return cases, but also fix some things that were lint only without formatting support.

Resolves the swift-format lint warning _ReplaceForEachWithForLoop_. There isn't
a rewrite rule for this so things have to be manually fixed.
Resolves the swift-format lint warnings for OmitExplicitReturns.

These cases likely are things that swift-format fails to rewrite for some reason
because it can handle other cases just fine.
@thomasvl
Copy link
Collaborator Author

Opened swiftlang/swift-format#812 for the OmitExplicitReturns things that weren't autofixed.

@thomasvl thomasvl merged commit 551675b into apple:main Sep 24, 2024
11 checks passed
@thomasvl thomasvl deleted the format_fixes branch September 24, 2024 13:58
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