Skip to content

apply swift-format #380

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 9 commits into from
Sep 30, 2024
Merged

apply swift-format #380

merged 9 commits into from
Sep 30, 2024

Conversation

sebsto
Copy link
Contributor

@sebsto sebsto commented Sep 30, 2024

Apply swift-format to Sources and Plugins directories

@sebsto sebsto requested a review from fabianfett September 30, 2024 13:36
Copy link
Member

@fabianfett fabianfett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

formatting still fails

@sebsto
Copy link
Contributor Author

sebsto commented Sep 30, 2024

Will use the NIO formatting script as suggested.

@sebsto
Copy link
Contributor Author

sebsto commented Sep 30, 2024

the NIO swift format script crashes with this error

Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:30:26: error: unexpected code in parameter clause

on this code

image

@fabianfett
Copy link
Member

@sebsto yes. this is because of an "old" toolchain. I applied the necessary changes manually. On linux it already works as intended (see CI).

@sebsto
Copy link
Contributor Author

sebsto commented Sep 30, 2024

The CI stills fails IMHO

image

@sebsto
Copy link
Contributor Author

sebsto commented Sep 30, 2024

@fabianfett swift format is fixed !
I'll merge if you approve

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Copy link
Member

@fabianfett fabianfett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your local swift format seems to have an issue with package. Those breaks aren't needed. In #379 CI passed without those weird breaks.

@sebsto
Copy link
Contributor Author

sebsto commented Sep 30, 2024

Fixed - not sure where it came from, maybe my first pass of swift-format without using swift-nio's script

@sebsto sebsto merged commit 8131a83 into swift-server:main Sep 30, 2024
11 of 13 checks passed
@sebsto sebsto deleted the sebsto/swift-format branch September 30, 2024 20:29
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.

None yet

2 participants