Skip to content

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 thomasvl requested review from allevato and tbkka September 23, 2024 22:39
@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