Open JetForMe opened 1 year ago
@JetForMe there isn't currently. Such a thing wouldn't be too hard to add, with the caveat the SwiftFormat only knows the context of the current file, so it couldn't know if you were using a method declared in another file as a property, e.g.
// file A
class Foo {
func bar()
}
...
// file B
extension Foo {
func baz() {
let quux = self.bar // function used as property
}
}
I think that's a reasonable limitation.
Is there any way to specify something like
--redundantSelf properties-only
?