nicklockwood / SwiftFormat

A command-line tool and Xcode Extension for formatting Swift code
MIT License
7.63k stars 623 forks source link

`--xcodeindentation` seems not working #1616

Open x-0o0 opened 5 months ago

x-0o0 commented 5 months ago

Thanks for the amazing formatting tools.

I'm facing some minor issue:

In .swiftformat file, I set --xcodeindentation enabled to flatten ternary operators like below:

someCondition
? valueForTrue
: valueForFalse

but it keeps adding indent before operators:

someCondition
    ? valueForTrue
    : valueForFalse
screenshot

please let me know if there's something wrong

easydev991 commented 4 months ago

I have an issue with the same behaviour: https://github.com/nicklockwood/SwiftFormat/issues/1351