Skip to content

Commit d26d9fc

Browse files
committed
Fixes swiftlint issues
1 parent a1a1373 commit d26d9fc

11 files changed

+13
-13
lines changed

Sources/Core/AWSClientRuntime/Auth/CredentialsProviders/CachedCredentialsProvider.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import Foundation
1212
/// A credentials provider that caches the credentials sourced from the provided credentials provider.
1313
public struct CachedCredentialsProvider: CredentialsSourcedByCRT {
1414
let crtCredentialsProvider: CRTCredentialsProvider
15-
15+
1616
/// Creates a credentials provider that caches the credentials sourced from the provided credentials provider.
1717
/// Credentials sourced through this provider will be cached within it until their expiration time.
1818
/// When the cached credentials expire, new credentials will be fetched when next queried.

Sources/Core/AWSClientRuntime/Auth/CredentialsProviders/CustomCredentialsProvider.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import Foundation
1212
/// Creates a credentials provider that uses the provided the object confirming to `CredentialsProviding` to source the credentials.
1313
struct CustomCredentialsProvider: CredentialsSourcedByCRT {
1414
let crtCredentialsProvider: CRTCredentialsProvider
15-
15+
1616
/// Creates a credentials provider that uses the provided the object confirming to `CredentialsProviding` to source the credentials.
1717
///
1818
/// - Parameter provider: An object confirming to `CredentialsProviding` to source the credentials.

Sources/Core/AWSClientRuntime/Auth/CredentialsProviders/DefaultChainCredentialsProvider.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ import Foundation
2222
/// The credentials retrieved from the chain are cached for 15 minutes.
2323
public struct DefaultChainCredentialsProvider: CredentialsSourcedByCRT {
2424
let crtCredentialsProvider: CRTCredentialsProvider
25-
25+
2626
/// Creates a credential provider that uses the default AWS credential provider chain used by most AWS SDKs.
2727
public init() throws {
2828
let fileBasedConfig = try CRTFileBasedConfiguration()
2929
try self.init(fileBasedConfig: fileBasedConfig)
3030
}
31-
31+
3232
@_spi(FileBasedConfig)
3333
public init(fileBasedConfig: CRTFileBasedConfiguration) throws {
3434
self.crtCredentialsProvider = try CRTCredentialsProvider(source: .defaultChain(

Sources/Core/AWSClientRuntime/Auth/CredentialsProviders/EnvironmentCredentialsProvider.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import Foundation
1515
/// - `AWS_SESSION_TOKEN`
1616
public struct EnvironmentCredentialsProvider: CredentialsSourcedByCRT {
1717
let crtCredentialsProvider: CRTCredentialsProvider
18-
18+
1919
/// Creates a credentials provider that sources credentials from the following environment variables:
2020
/// - `AWS_ACCESS_KEY_ID`
2121
/// - `AWS_SECRET_ACCESS_KEY`

Sources/Core/AWSClientRuntime/Auth/CredentialsProviders/ProfileCredentialsProvider.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import Foundation
4141
/// For more complex configurations see [Configuration and credential file settings](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html)
4242
public struct ProfileCredentialsProvider: CredentialsSourcedByCRT {
4343
let crtCredentialsProvider: CRTCredentialsProvider
44-
44+
4545
/// Creates a credentials provider that gets credentials from a profile in `~/.aws/config` or the shared credentials file `~/.aws/credentials`.
4646
///
4747
/// - Parameters:

Sources/Core/AWSClientRuntime/Auth/CredentialsProviders/STSAssumeRoleCredentialsProvider.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import Foundation
1717
/// For more information see [Assume role credential provider](https://docs.aws.amazon.com/sdkref/latest/guide/feature-assume-role-credentials.html)
1818
public struct STSAssumeRoleCredentialsProvider: CredentialsSourcedByCRT {
1919
let crtCredentialsProvider: CRTCredentialsProvider
20-
20+
2121
/// Creates a credential provider that uses another provider to assume a role from the AWS Security Token Service (STS).
2222
///
2323
/// - Parameters:

Sources/Core/AWSClientRuntime/Auth/CredentialsProviders/STSWebIdentityCredentialsProvider.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import Foundation
2020
/// For more information see [AssumeRoleWithWebIdentity](https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoleWithWebIdentity.html)
2121
public struct STSWebIdentityCredentialsProvider: CredentialsSourcedByCRT {
2222
let crtCredentialsProvider: CRTCredentialsProvider
23-
23+
2424
/// Creates a credential provider that exchanges a Web Identity Token for credentials from the AWS Security Token Service (STS).
2525
///
2626
/// - Parameters:

Sources/Core/AWSClientRuntime/Auth/CredentialsProviders/StaticCredentialsProvider.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import Foundation
1313
public struct StaticCredentialsProvider: CredentialsSourcedByCRT {
1414
private let credentials: Credentials
1515
let crtCredentialsProvider: CRTCredentialsProvider
16-
16+
1717
/// Creates a credentials provider for a fixed set of credentials
1818
///
1919
/// - Parameter credentials: The credentials that this provider will provide.

Sources/Core/AWSClientRuntime/FileBasedConfiguration/CRTFileBasedConfiguration.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extension CRTFileBasedConfiguration: FileBasedConfiguration {
3333
let credentialsFilePath = try credentialsFilePath ?? CRTFileBasedConfiguration.resolveConfigPath(sourceType: .credentials)
3434
return try CRTFileBasedConfiguration(configFilePath: configFilePath, credentialsFilePath: credentialsFilePath)
3535
}
36-
36+
3737
public static func makeAsync(
3838
configFilePath: String? = nil,
3939
credentialsFilePath: String? = nil
@@ -46,7 +46,7 @@ extension CRTFileBasedConfiguration: FileBasedConfiguration {
4646
}
4747
return try await task.value
4848
}
49-
49+
5050
public func section(
5151
for name: String,
5252
type: FileBasedConfigurationSectionType

Sources/Core/AWSClientRuntime/FileBasedConfiguration/FileBasedConfiguration.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public extension FileBasedConfigurationPropertyProviding {
6666
return nil
6767
}
6868
}
69-
69+
7070
func subproperties(for name: FileBasedConfigurationKey) -> FileBasedConfigurationSubsection? {
7171
guard let value = property(for: name) else { return nil }
7272
switch value {

Sources/Core/AWSClientRuntime/Regions/DefaultRegionResolver.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public struct StaticRegionResolver: RegionResolver {
4848
public init(_ region: String) {
4949
self.region = region
5050
}
51-
51+
5252
public func resolveRegion() async -> String? {
5353
return region
5454
}

0 commit comments

Comments
 (0)