nicklockwood / SwiftFormat

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

doesn't recognize both --disable all and // swiftformat:disable all #1540

Closed hhajime closed 8 months ago

hhajime commented 10 months ago

When attempting to disable SwiftFormat for a all of code, neither the -- disable all nor the // swiftformat:disable all directives seem to be working.

here's my .swiftformat.yml

# .swiftFormat

#  disable all rules for optional rule activation.
--disable all
// swiftformat:disable all
nicklockwood commented 10 months ago

.swiftformat files aren't yaml and shouldn't have a .yml extension - could that be the problem?