Skip to content

Commit f271e90

Browse files
committed
Add exceptions for periphery warnings
1 parent dcdaac5 commit f271e90

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

Modules/Sources/Networking/Mapper/JetpackConnectionProvisionMapper.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import Foundation
22

33
/// Mapper: Jetpack connection registration
44
///
5+
/// periphery: ignore - used in `JetpackConnectionRemote`
56
struct JetpackConnectionProvisionMapper: Mapper {
67

78
/// (Attempts) to extract the updated `currentUser` field from a given JSON Encoded response.

Modules/Sources/Networking/Mapper/JetpackConnectionRegistrationMapper.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import Foundation
22

33
/// Mapper: Jetpack connection registration
44
///
5+
/// periphery: ignore - used in `JetpackConnectionRemote`
56
struct JetpackConnectionRegistrationMapper: Mapper {
67

78
/// (Attempts) to extract the updated `currentUser` field from a given JSON Encoded response.

Modules/Sources/Networking/Remote/JetpackConnectionRemote.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public final class JetpackConnectionRemote: Remote {
5959

6060
/// Establishes a site-level connection between the site and WordPress.com using Jetpack.
6161
/// Returns WPCom `blogID` of the connected site.
62+
/// periphery: ignore - used in `JetpackConnectionStore` later
6263
///
6364
public func registerSite() async throws -> Int64 {
6465
let request = RESTRequest(siteURL: siteURL, method: .post, path: Path.jetpackConnectionRegister)
@@ -74,6 +75,7 @@ public final class JetpackConnectionRemote: Remote {
7475

7576
/// Provisions the connection between the site and WordPress.com using Jetpack.
7677
/// Returns a response containing scope and secret to be sent for finalizing the connection.
78+
/// periphery: ignore - used in `JetpackConnectionStore` later
7779
///
7880
public func provisionConnection() async throws -> JetpackConnectionProvisionResponse {
7981
let request = RESTRequest(siteURL: siteURL, method: .post, path: Path.jetpackConnectionProvision)
@@ -82,6 +84,7 @@ public final class JetpackConnectionRemote: Remote {
8284
}
8385
}
8486

87+
/// periphery: ignore - used in test module and on the UI layer
8588
public enum JetpackConnectionError: Error, Equatable {
8689
case malformedURL
8790
case accountConnectionURLNotFound

Modules/Sources/Networking/Remote/SiteRemote.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ public protocol SiteRemoteProtocol {
4343
/// - siteID: Remote ID of the site
4444
/// - siteURL: URL of the site
4545
/// - provisionResponse: Response from the provision connection call
46+
/// periphery: ignore - used in test module
47+
///
4648
func finalizeJetpackConnection(siteID: Int64,
4749
siteURL: String,
4850
provisionResponse: JetpackConnectionProvisionResponse) async throws
@@ -172,6 +174,7 @@ public class SiteRemote: Remote, SiteRemoteProtocol {
172174
}
173175

174176
/// Finalizes the Jetpack connection by sending a request to WPCom.
177+
/// periphery: ignore - used in `JetpackConnectionStore` later
175178
///
176179
public func finalizeJetpackConnection(siteID: Int64,
177180
siteURL: String,

0 commit comments

Comments
 (0)