-
Notifications
You must be signed in to change notification settings - Fork 39
Switch from swiftformat to swift-format #107
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
Switch from swiftformat to swift-format #107
Conversation
I think it's okey to take the hit and do it all at once -- format the tests too; it'd be weird to only have a part of the codebase use a formatter |
@swift-server-bot add to allowlist |
Not sure why CI is failing, locally:
On https://ci.swiftserver.group/job/swift-prometheus-soundness-prb/25/console :
Does someone have access to more logs? |
As of Swift 5.8, swift-format depends on the version of SwiftSyntax whose parser has been rewritten in Swift and no longer has dependencies on libraries in the Swift toolchain. Defaulting to Swift 5.8 fixes the usage of swift-format in nightly builds.
All checks now pass apart from
Could someone with better access rights tell me what the CI step is running so that I can try to reproduce locally? Right now the output on Jenkins does not give me the details I need to pass this last check. |
The way to reproduce CI is:
hope this helps? |
Thanks for the contribution @armandgrillet |
This PR is made to close #94.
The code has been tested using
swift-format lint --configuration .swift-format --recursive Sources
.Tests/PrometheusTests
should be formatted as well but contains too many things to change for now, this is why I have started with onlySources
and added"lineLength": 1000
to limit the number of changes to do.