SwiftRewriter
SwiftRewriter copied to clipboard
📝 Swift code formatter using SwiftSyntax.
Hi The code can be compiled in Linux but can't run on the canonic Hello project from Swift. This error on the execution of swift run swift-rewriter run --path /home/louis/DEV/Swift/SwiftRewriter/...
I got error when I run tests from Xcode: ``` Library not loaded: @rpath/lib_InternalSwiftSyntaxParser.dylib ```
Given: ```swift enum Foo { case P(x: Int) } class A { func a() -> Bool { return true } } func foo() { switch Foo.P(x: 1) { case .P(1)...
Given: ```swift enum Foo { case P(x: Int) } class A { func a() -> Bool { return true } } func foo() { for case let .P(x) in [Foo.P(x:...
Could we get `...` and `..
## Examples ```diff -let foo = veryLongBooleanFlag1 && - veryLongBooleanFlag2 +let foo = veryLongBooleanFlag1 + && veryLongBooleanFlag2 ``` ```diff -let foo = flag ? - that +let foo = flag...
Change `struct` to `enum` whenever possible that doesn't require `Foo.init()`. ### Example ```diff -struct Foo { +enum Foo { static let bar = Bar() } ```