Before Parentheses
Around operators
Before Left Brace
Before Keywords
Within
In Ternary Operator (?:)
Around colons
Within Type Arguments
Other
Braces placement
'if' statement
'guard' statement
'repeat' statement
'switch' statement
'do' statement
Keep Maximum Blank Lines
Minimum Blank Lines
// swiftfmt playground

import Foundation
import SwiftSyntax

public class Foo : NSObject {
    public let x = [1, 3, 5, 7, 9, 11]

    /// Description
    ///
    /// - Parameters:
    ///   - a: param a
    ///   - b: param b
    /// - Returns: String value
    func foo(a: Bool, x: Int, y: Int, z: Int) -> String {
        do {
            let contents = try String(contentsOfFile: "/usr/bin/swift")
            if contents.isEmpty { print(contents) } else if contents.count > 10 {
                /*
                 Block
                 Comment
                 */
                for char in contents {
                    // Line Comment
                    print(
                        char
                    )
                    _ = contents.map({ (c) -> String in
                        _ =
                        String(c).map({ (c) -> String in
                            return String(c)
                        })
                        return ""
                    }).map {
                        return $0
                    }
                }
            } else {
                switch x {
                case 0:
                    break
                case 1:
                    print(y)
                    print(z)
                default:
                    break
                }
            }
        } catch {
            print(error)
        }

        return "bar"
    }

    private class Inner {
        let x = 0
    }
}

enum Fruit {
    case banana
}