swift-server / swift-aws-lambda-runtime

Swift implementation of AWS Lambda Runtime
https://swiftpackageindex.com/swift-server/swift-aws-lambda-runtime
Apache License 2.0
1.15k stars 105 forks source link

apply swift-format #380

Closed sebsto closed 1 month ago

sebsto commented 1 month ago

Apply swift-format to Sources and Plugins directories

sebsto commented 1 month ago

Will use the NIO formatting script as suggested.

sebsto commented 1 month ago

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 commented 1 month ago

@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 commented 1 month ago

The CI stills fails IMHO

image

sebsto commented 1 month ago

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

sebsto commented 1 month ago

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