Skip to content

Commit 8792bfc

Browse files
authored
Run swiftformat (#96)
1 parent 2189939 commit 8792bfc

File tree

164 files changed

+605
-603
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+605
-603
lines changed

.swiftformat

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
## Acronyms to auto-capitalize. Defaults to ID,URL,UUID.
1010
--acronyms ID,URL,UUID,API
1111

12+
## Date format to use in file headers: system (default), iso, dmy, mdy, or custom.
13+
--dateformat mdy
14+
1215
## Change type with only static members to enum: always (default) or structs-only.
1316
--enumnamespaces structs-only
1417

@@ -22,7 +25,7 @@
2225
--groupedextension "MARK: - %c"
2326

2427
## Header comments: strip, ignore, or the text you wish use.
25-
--header ignore
28+
--header \n {file}\n\n Created by {author.name}.\n Copyright © {year} Fetch.\n
2629

2730
## #if indenting: indent (default), no-indent, or outdent.
2831
--ifdef no-indent
@@ -475,4 +478,4 @@
475478
## Prefer constant values to be on the right-hand-side of expressions.
476479
### Options:
477480
### --yodaswap (default: always)
478-
--rules yodaConditions
481+
--rules yodaConditions

Sources/Mocking/Extensions/Result+AsyncCatching.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// Result+AsyncCatching.swift
3-
// Mocking
43
//
5-
// Created by Cole Campbell on 11/12/23.
4+
// Created by Cole Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
import Foundation

Sources/Mocking/Macros/MockableMethod.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockableMethod.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 2/2/25.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
/// A macro that marks a method as being mockable.

Sources/Mocking/Macros/MockableProperty.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockableProperty.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 1/19/25.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
/// A macro that marks a property as being mockable.

Sources/Mocking/Macros/Mocked.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// Mocked.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 11/4/23.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
/// A macro that produces a mock when attached to a protocol.

Sources/Mocking/Macros/MockedMembers.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockedMembers.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 1/15/25.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
/// A macro that adds the `@_MockedProperty` macro to all property declarations

Sources/Mocking/Macros/MockedMethod.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockedMethod.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 1/14/25.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
/// A macro that produces a mocked method when attached to a method declaration.

Sources/Mocking/Macros/MockedProperty.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockedProperty.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 1/16/25.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
/// A macro that produces a mocked property when attached to a property

Sources/Mocking/Models/MockCompilationCondition/MockCompilationCondition.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockCompilationCondition.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 3/30/25.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
import Foundation

Sources/Mocking/Models/MockImplementationDescription/MockImplementationDescription.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockImplementationDescription.swift
3-
// Mocking
43
//
5-
// Created by Cole Campbell on 11/25/23.
4+
// Created by Cole Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
import Foundation

Sources/Mocking/Models/MockMethods/MockReturningMethods/MockReturningMethodImplementation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockReturningMethodImplementation.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 2/15/25.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
import Foundation

Sources/Mocking/Models/MockMethods/MockReturningMethods/MockReturningNonParameterizedAsyncMethod/MockReturningNonParameterizedAsyncMethod+Implementation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockReturningNonParameterizedAsyncMethod+Implementation.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 7/18/24.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
import Foundation

Sources/Mocking/Models/MockMethods/MockReturningMethods/MockReturningNonParameterizedAsyncMethod/MockReturningNonParameterizedAsyncMethod.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockReturningNonParameterizedAsyncMethod.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 11/4/23.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
import Foundation

Sources/Mocking/Models/MockMethods/MockReturningMethods/MockReturningNonParameterizedAsyncThrowingMethod/MockReturningNonParameterizedAsyncThrowingMethod+Implementation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockReturningNonParameterizedAsyncThrowingMethod+Implementation.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 7/18/24.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
import Foundation

Sources/Mocking/Models/MockMethods/MockReturningMethods/MockReturningNonParameterizedAsyncThrowingMethod/MockReturningNonParameterizedAsyncThrowingMethod.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockReturningNonParameterizedAsyncThrowingMethod.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 11/4/23.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
import Foundation

Sources/Mocking/Models/MockMethods/MockReturningMethods/MockReturningNonParameterizedMethod/MockReturningNonParameterizedMethod+Implementation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockReturningNonParameterizedMethod+Implementation.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 7/18/24.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
import Foundation

Sources/Mocking/Models/MockMethods/MockReturningMethods/MockReturningNonParameterizedMethod/MockReturningNonParameterizedMethod.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockReturningNonParameterizedMethod.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 11/4/23.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
import Foundation

Sources/Mocking/Models/MockMethods/MockReturningMethods/MockReturningNonParameterizedThrowingMethod/MockReturningNonParameterizedThrowingMethod+Implementation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockReturningNonParameterizedThrowingMethod+Implementation.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 7/18/24.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
import Foundation

Sources/Mocking/Models/MockMethods/MockReturningMethods/MockReturningNonParameterizedThrowingMethod/MockReturningNonParameterizedThrowingMethod.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockReturningNonParameterizedThrowingMethod.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 11/4/23.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
import Foundation

Sources/Mocking/Models/MockMethods/MockReturningMethods/MockReturningParameterizedAsyncMethod/MockReturningParameterizedAsyncMethod.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockReturningParameterizedAsyncMethod.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 11/4/23.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
import Foundation
@@ -178,8 +178,7 @@ public final class MockReturningParameterizedAsyncMethod<
178178
// MARK: - Sendable
179179

180180
extension MockReturningParameterizedAsyncMethod: Sendable
181-
where Arguments: Sendable,
182-
ReturnValue: Sendable
181+
where Arguments: Sendable, ReturnValue: Sendable
183182
{
184183

185184
// MARK: Factories

Sources/Mocking/Models/MockMethods/MockReturningMethods/MockReturningParameterizedAsyncMethod/MockReturningParameterizedAsyncMethodImplementation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockReturningParameterizedAsyncMethodImplementation.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 2/26/25.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
/// An implementation for a returning, parameterized, async mock method.

Sources/Mocking/Models/MockMethods/MockReturningMethods/MockReturningParameterizedAsyncThrowingMethod/MockReturningParameterizedAsyncThrowingMethod.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockReturningParameterizedAsyncThrowingMethod.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 11/4/23.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
import Foundation
@@ -186,8 +186,7 @@ public final class MockReturningParameterizedAsyncThrowingMethod<
186186
// MARK: - Sendable
187187

188188
extension MockReturningParameterizedAsyncThrowingMethod: Sendable
189-
where Arguments: Sendable,
190-
ReturnValue: Sendable
189+
where Arguments: Sendable, ReturnValue: Sendable
191190
{
192191

193192
// MARK: Factories

Sources/Mocking/Models/MockMethods/MockReturningMethods/MockReturningParameterizedAsyncThrowingMethod/MockReturningParameterizedAsyncThrowingMethodImplementation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockReturningParameterizedAsyncThrowingMethodImplementation.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 2/25/25.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
import Foundation

Sources/Mocking/Models/MockMethods/MockReturningMethods/MockReturningParameterizedMethod/MockReturningParameterizedMethod.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockReturningParameterizedMethod.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 11/4/23.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
import Foundation
@@ -178,8 +178,7 @@ public final class MockReturningParameterizedMethod<
178178
// MARK: - Sendable
179179

180180
extension MockReturningParameterizedMethod: Sendable
181-
where Arguments: Sendable,
182-
ReturnValue: Sendable
181+
where Arguments: Sendable, ReturnValue: Sendable
183182
{
184183

185184
// MARK: Factories

Sources/Mocking/Models/MockMethods/MockReturningMethods/MockReturningParameterizedMethod/MockReturningParameterizedMethodImplementation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockReturningParameterizedMethodImplementation.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 2/25/25.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
import Foundation

Sources/Mocking/Models/MockMethods/MockReturningMethods/MockReturningParameterizedThrowingMethod/MockReturningParameterizedThrowingMethod.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockReturningParameterizedThrowingMethod.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 11/4/23.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
import Foundation
@@ -185,8 +185,7 @@ public final class MockReturningParameterizedThrowingMethod<
185185
// MARK: - Sendable
186186

187187
extension MockReturningParameterizedThrowingMethod: Sendable
188-
where Arguments: Sendable,
189-
ReturnValue: Sendable
188+
where Arguments: Sendable, ReturnValue: Sendable
190189
{
191190

192191
// MARK: Factories

Sources/Mocking/Models/MockMethods/MockReturningMethods/MockReturningParameterizedThrowingMethod/MockReturningParameterizedThrowingMethodImplementation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockReturningParameterizedThrowingMethodImplementation.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 2/25/25.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
import Foundation

Sources/Mocking/Models/MockMethods/MockVoidMethods/MockVoidMethodImplementation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockVoidMethodImplementation.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 2/17/25.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
import Foundation

Sources/Mocking/Models/MockMethods/MockVoidMethods/MockVoidNonParameterizedAsyncMethod/MockVoidNonParameterizedAsyncMethod+Implementation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockVoidNonParameterizedAsyncMethod+Implementation.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 7/18/24.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
import Foundation

Sources/Mocking/Models/MockMethods/MockVoidMethods/MockVoidNonParameterizedAsyncMethod/MockVoidNonParameterizedAsyncMethod.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockVoidNonParameterizedAsyncMethod.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 11/4/23.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
import Foundation

Sources/Mocking/Models/MockMethods/MockVoidMethods/MockVoidNonParameterizedAsyncThrowingMethod/MockVoidNonParameterizedAsyncThrowingMethod+Implementation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// MockVoidNonParameterizedAsyncThrowingMethod+Implementation.swift
3-
// Mocking
43
//
5-
// Created by Gray Campbell on 7/18/24.
4+
// Created by Gray Campbell.
5+
// Copyright © 2025 Fetch.
66
//
77

88
import Foundation

0 commit comments

Comments
 (0)