nicklockwood / SwiftFormat

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

sortSwitchCases raising error #1563

Open xDhii opened 11 months ago

xDhii commented 11 months ago

When I enable the "redundantOptionalBinding", SwiftFormat stops working and an error is raised (I don't know how to get the full error) If I disable this option, everything works fine

image

nicklockwood commented 11 months ago

Can you share the file that you were attempting to format? Also, are you able to reproduce this error using the command-line version of SwiftFormat?