File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Sources/swift-format/Frontend Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1313 "NoBlockComments": false,
1414 "OrderedImports": true,
1515 "UseLetInEveryBoundCaseVariable": false,
16- "UseSynthesizedInitializer": false
16+ "UseSynthesizedInitializer": false,
17+ "ReturnVoidInsteadOfEmptyTuple": true,
18+ "NoVoidReturnOnFunctionSignature": true,
1719 }
1820}
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ class FormatFrontend: Frontend {
4040 return
4141 }
4242
43- let diagnosticHandler : ( SwiftDiagnostics . Diagnostic , SourceLocation ) -> ( ) = {
43+ let diagnosticHandler : ( SwiftDiagnostics . Diagnostic , SourceLocation ) -> Void = {
4444 ( diagnostic, location) in
4545 guard !self . lintFormatOptions. ignoreUnparsableFiles else {
4646 // No diagnostics should be emitted in this mode.
You can’t perform that action at this time.
0 commit comments