From 6dd06ce8d27cc9ee3aca9abcd08ee79c4e416a5c Mon Sep 17 00:00:00 2001 From: Sebastian Villena <97059974+ruisebas@users.noreply.github.com> Date: Thu, 5 Sep 2024 18:34:23 -0400 Subject: [PATCH] chore: Fixing SwiftLint issues --- .../Support/Utils/AmplifyStringConvertible.swift | 1 + .../Dependency/S3ClientConfiguration+withAccelerate.swift | 2 +- .../Dependency/UploadPartInput+presignURL.swift | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/AmplifyPlugins/Internal/Sources/InternalAWSPinpoint/Support/Utils/AmplifyStringConvertible.swift b/AmplifyPlugins/Internal/Sources/InternalAWSPinpoint/Support/Utils/AmplifyStringConvertible.swift index 9aa13354a7..bcdf84b078 100644 --- a/AmplifyPlugins/Internal/Sources/InternalAWSPinpoint/Support/Utils/AmplifyStringConvertible.swift +++ b/AmplifyPlugins/Internal/Sources/InternalAWSPinpoint/Support/Utils/AmplifyStringConvertible.swift @@ -108,6 +108,7 @@ extension AmplifyStringConvertible { } } +// swiftlint:disable identifier_name private protocol _AmplifyOptional { func _amplifyUnwrap() -> Any? } diff --git a/AmplifyPlugins/Storage/Sources/AWSS3StoragePlugin/Dependency/S3ClientConfiguration+withAccelerate.swift b/AmplifyPlugins/Storage/Sources/AWSS3StoragePlugin/Dependency/S3ClientConfiguration+withAccelerate.swift index 6e9f6dd0a9..2d87150438 100644 --- a/AmplifyPlugins/Storage/Sources/AWSS3StoragePlugin/Dependency/S3ClientConfiguration+withAccelerate.swift +++ b/AmplifyPlugins/Storage/Sources/AWSS3StoragePlugin/Dependency/S3ClientConfiguration+withAccelerate.swift @@ -43,7 +43,7 @@ extension S3Client.S3ClientConfiguration { telemetryProvider: telemetryProvider, retryStrategyOptions: retryStrategyOptions, clientLogMode: clientLogMode, - endpoint:endpoint, + endpoint: endpoint, idempotencyTokenGenerator: idempotencyTokenGenerator, httpClientEngine: httpClientEngine, httpClientConfiguration: httpClientConfiguration, diff --git a/AmplifyPlugins/Storage/Sources/AWSS3StoragePlugin/Dependency/UploadPartInput+presignURL.swift b/AmplifyPlugins/Storage/Sources/AWSS3StoragePlugin/Dependency/UploadPartInput+presignURL.swift index b5cfb70859..648d113a66 100644 --- a/AmplifyPlugins/Storage/Sources/AWSS3StoragePlugin/Dependency/UploadPartInput+presignURL.swift +++ b/AmplifyPlugins/Storage/Sources/AWSS3StoragePlugin/Dependency/UploadPartInput+presignURL.swift @@ -12,6 +12,8 @@ import Smithy import SmithyHTTPAPI import SmithyRetries +// swiftlint:disable identifier_name +// swiftlint:disable line_length extension UploadPartInput { public func customPresignURL(config: S3Client.S3ClientConfiguration, expiration: Foundation.TimeInterval) async throws -> Foundation.URL? { let serviceName = "S3"