swiftlang / swift-format

Formatting technology for Swift source code
Apache License 2.0
2.47k stars 228 forks source link

False positive of line breaks for multi-line expression #654

Open ylorn opened 11 months ago

ylorn commented 11 months ago

.swift-format configuration:

{
    "version": 1,
    "lineLength": 160,
    "indentation": {
        "spaces": 4
    },
    "rules": {

    }
}

What happened:

Screenshot 2023-10-18 at 4 37 19 PM

What is expected: New line should not be expected in these cases.

ahoppen commented 5 months ago

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