Skip to content

Conversation

@felix-ht
Copy link
Collaborator

@felix-ht felix-ht commented Dec 3, 2021

Added swift formatting based on https://github.com/nicklockwood/SwiftFormat

Swift part of #754

The second commit has only pure formatting changes no functional changes

@felix-ht felix-ht temporarily deployed to ANDROID_CI_DOWNLOADS_TOKEN December 3, 2021 17:09 Inactive
@felix-ht felix-ht temporarily deployed to ANDROID_CI_DOWNLOADS_TOKEN December 3, 2021 17:09 Inactive
@felix-ht felix-ht temporarily deployed to ANDROID_CI_DOWNLOADS_TOKEN December 3, 2021 17:14 Inactive
@felix-ht felix-ht temporarily deployed to ANDROID_CI_DOWNLOADS_TOKEN December 3, 2021 17:14 Inactive
@felix-ht felix-ht marked this pull request as ready for review December 3, 2021 17:18
@felix-ht felix-ht requested a review from m0nac0 December 3, 2021 17:18
@felix-ht felix-ht temporarily deployed to ANDROID_CI_DOWNLOADS_TOKEN December 3, 2021 17:22 Inactive
@felix-ht felix-ht temporarily deployed to ANDROID_CI_DOWNLOADS_TOKEN December 3, 2021 17:22 Inactive
@m0nac0
Copy link
Collaborator

m0nac0 commented Dec 3, 2021

I'm not familiar with Swift tooling, but this looks like a good choice.
Maybe some of the other iOS contributors have an opinion on this?

@felix-ht felix-ht requested review from n8han and tobrun December 3, 2021 17:26
@felix-ht felix-ht temporarily deployed to ANDROID_CI_DOWNLOADS_TOKEN December 3, 2021 17:45 Inactive
@felix-ht felix-ht temporarily deployed to ANDROID_CI_DOWNLOADS_TOKEN December 3, 2021 17:45 Inactive
@felix-ht
Copy link
Collaborator Author

felix-ht commented Dec 3, 2021

@m0nac0 i requested some other reviews - and also added a maximum line width of 100

I made some more tests also comparing to swift-format. In general swift-format creates slightly more lines of code. Both of them don't seem to be fully determined by the AST of a file, but depend also on current formatting.
SwiftFormat is certainly far more popular.

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.

4 participants