Skip to content

Commit 7fb77b6

Browse files
committed
.swift-format: Enable NoVoidReturnOnFunctionSignature
1 parent 052cdc6 commit 7fb77b6

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.swift-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@
1515
"UseLetInEveryBoundCaseVariable": false,
1616
"UseSynthesizedInitializer": false,
1717
"ReturnVoidInsteadOfEmptyTuple": true,
18+
"NoVoidReturnOnFunctionSignature": true,
1819
}
1920
}

Sources/SourceKitD/SourceKitD.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ package actor SourceKitD {
482482

483483
/// A sourcekitd notification handler in a class to allow it to be uniquely referenced.
484484
package protocol SKDNotificationHandler: AnyObject, Sendable {
485-
func notification(_: SKDResponse) -> Void
485+
func notification(_: SKDResponse)
486486
}
487487

488488
struct WeakSKDNotificationHandler: Sendable {

Tests/SourceKitLSPTests/ExpectedIndexTaskTracker.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ actor ExpectedIndexTaskTracker {
142142
)
143143
}
144144

145-
func preparationTaskDidStart(taskDescription: PreparationTaskDescription) -> Void {
145+
func preparationTaskDidStart(taskDescription: PreparationTaskDescription) {
146146
guard let expectedPreparations else {
147147
return
148148
}
@@ -160,7 +160,7 @@ actor ExpectedIndexTaskTracker {
160160
}
161161
}
162162

163-
func preparationTaskDidFinish(taskDescription: PreparationTaskDescription) -> Void {
163+
func preparationTaskDidFinish(taskDescription: PreparationTaskDescription) {
164164
guard let expectedPreparations else {
165165
return
166166
}
@@ -191,7 +191,7 @@ actor ExpectedIndexTaskTracker {
191191
}
192192
}
193193

194-
func updateIndexStoreTaskDidStart(taskDescription: UpdateIndexStoreTaskDescription) -> Void {
194+
func updateIndexStoreTaskDidStart(taskDescription: UpdateIndexStoreTaskDescription) {
195195
if Task.isCancelled {
196196
logger.debug(
197197
"""
@@ -212,7 +212,7 @@ actor ExpectedIndexTaskTracker {
212212
}
213213
}
214214

215-
func updateIndexStoreTaskDidFinish(taskDescription: UpdateIndexStoreTaskDescription) -> Void {
215+
func updateIndexStoreTaskDidFinish(taskDescription: UpdateIndexStoreTaskDescription) {
216216
guard let expectedIndexStoreUpdates else {
217217
return
218218
}

0 commit comments

Comments
 (0)