Skip to content

Format using swift-format #890

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 1 commit into from
Oct 11, 2023
Merged

Format using swift-format #890

merged 1 commit into from
Oct 11, 2023

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Oct 10, 2023

Add .swift-format to the repo and format the repo with swift-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.

Add `.swift-format` to the repo and format the repo with `swift-format`.

This commit does not add any automation to enforce formatting of sourcekit-lsp in CI. The goal of this commit 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.
@ahoppen
Copy link
Member Author

ahoppen commented Oct 10, 2023

@swift-ci Please test

@ahoppen ahoppen merged commit 779a3c3 into swiftlang:main Oct 11, 2023
@ahoppen ahoppen deleted the ahoppen/format branch October 11, 2023 15:00
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