Formatter
struct Formatter
responsible for code formatting
uses SwiftFormatter
either with a provided or a default configuration
-
SwiftFormatter
Declaration
Swift
var formatter: SwiftFormatter
-
Initializes Formatter
Declaration
Swift
init(configPath path: String? = nil) throws
-
Formats code of files in
[URL]
Throws
error if formatting or writing failsDeclaration
Swift
func format(paths: [URL]) throws
Parameters
paths
fileURLs as
[URL]