swiftlang / swift-format

Formatting technology for Swift source code
Apache License 2.0
2.5k stars 229 forks source link

[SR-11823] swift-format: add option to leave intra-expression spacing as is #339

Open swift-ci opened 4 years ago

swift-ci commented 4 years ago
Previous ID SR-11823
Radar None
Original Reporter gwk (JIRA User)
Type Improvement
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 0 | |Component/s | swift-format | |Labels | Improvement | |Assignee | None | |Priority | Medium | md5: dd4f120aec6465bd8fc4e18cfdcd6098

Issue Description:

I just tried swift-format for the first time. I am quite pleased with the results, but there are two cases that I wish I could disable to preserve existing spacing:

I realize that the project must strike a balance between convention and configuration. Regardless of how the developers feel about these style choices, I hope that you will consider this request on the basis of reducing barriers to entry. If it weren't for these points, then adding swift-format to my workflow would be an obvious improvement. As it is, I feel like I am making a compromise. In any case, thank you for your great work!

ahoppen commented 6 months ago

Tracked in Apple’s issue tracker as rdar://126948241