Format using swift-format #890
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add
.swift-format
to the repo and format the repo withswift-format
.This PR does not add any automation to enforce formatting of sourcekit-lsp in CI. The goal of the PR is to get the majority of source changes out of the way so that the diff of actually enforcing formatting will have fewer changes or conflicts.
I scanned through the changes, made a couple of improvements, like converting long function signatures to use
some
but other than that, all of the changes are mechanical..swift-format
was copied from swift-syntax, with the only difference that we use a maximum line length of 120 because that’s what we want to use for the Swift project in the future.