We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ReturnVoidInsteadOfEmptyTuple
1 parent 24c7446 commit 7a35d08Copy full SHA for 7a35d08
.swift-format
@@ -13,6 +13,7 @@
13
"NoBlockComments": false,
14
"OrderedImports": true,
15
"UseLetInEveryBoundCaseVariable": false,
16
- "UseSynthesizedInitializer": false
+ "UseSynthesizedInitializer": false,
17
+ "ReturnVoidInsteadOfEmptyTuple": true,
18
}
19
Sources/swift-format/Frontend/FormatFrontend.swift
@@ -40,7 +40,7 @@ class FormatFrontend: Frontend {
40
return
41
42
43
- let diagnosticHandler: (SwiftDiagnostics.Diagnostic, SourceLocation) -> () = {
+ let diagnosticHandler: (SwiftDiagnostics.Diagnostic, SourceLocation) -> Void = {
44
(diagnostic, location) in
45
guard !self.lintFormatOptions.ignoreUnparsableFiles else {
46
// No diagnostics should be emitted in this mode.
0 commit comments