The following example:
// swiftformat:disable all
public protocol Foo {
func test()
}
internal protocol Bar: Foo {}
extension Bar {
public func test() {
// …
}
}
gets formatted to:
// swiftformat:disable all
public protocol Foo {
func test()
}
internal protocol Bar: Foo {}
public extension Bar {
func test() {
// …
}
}
which unfortunately breaks compilation (as test() needs to be public to satisfy Foo).
Thanks for reporting, I'll get it fixed
also --disable extensionacl inside .swiftformat does not affect the swiftformat logic
@Speakus try --disable extensionAccessControl instead.
@cleverer fixed in 0.47.2
Most helpful comment
@cleverer fixed in 0.47.2