Skip to content

Commit

Permalink
swiftlint disable nesting AmplifyOutputsData
Browse files Browse the repository at this point in the history
  • Loading branch information
lawmicha committed Apr 24, 2024
1 parent e8e8f50 commit 3094f10
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Amplify/Core/Configuration/AmplifyOutputsData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import Foundation

// swiftlint:disable nesting

Check warning on line 10 in Amplify/Core/Configuration/AmplifyOutputsData.swift

View workflow job for this annotation

GitHub Actions / run-swiftlint

The disabled 'nesting' rule should be re-enabled before the end of the file (blanket_disable_command)
/// Represents Amplify's Gen2 configuration for all categories intended to be used in an application.
///
/// See: [Amplify.configure](x-source-tag://Amplify.configure)
Expand Down Expand Up @@ -49,6 +50,7 @@ public struct AmplifyOutputsData: Codable {
public let mfaConfiguration: String?
public let mfaMethods: [String]?

@_spi(InternalAmplifyConfiguration)
public struct PasswordPolicy: Codable {
public let minLength: UInt
public let requireNumbers: Bool
Expand All @@ -57,6 +59,7 @@ public struct AmplifyOutputsData: Codable {
public let requireSymbols: Bool
}

@_spi(InternalAmplifyConfiguration)
public struct OAuth: Codable {
public let identityProviders: [String]
public let cognitoDomain: String
Expand All @@ -67,11 +70,13 @@ public struct AmplifyOutputsData: Codable {
public let responseType: String
}

@_spi(InternalAmplifyConfiguration)
public enum UsernameAttributes: String, Codable {
case email = "email"
case phoneNumber = "phone_number"
}

@_spi(InternalAmplifyConfiguration)
public enum UserVerificationType: String, Codable {
case email = "email"
case phoneNumber = "phone_number"
Expand Down Expand Up @@ -122,20 +127,24 @@ public struct AmplifyOutputsData: Codable {
public let searchIndices: SearchIndices?
public let geofenceCollections: GeofenceCollections?

@_spi(InternalAmplifyConfiguration)
public struct Maps: Codable {
public let items: [String: AmazonLocationServiceConfig]
public let `default`: String

@_spi(InternalAmplifyConfiguration)
public struct AmazonLocationServiceConfig: Codable {
public let style: String
}
}

@_spi(InternalAmplifyConfiguration)
public struct SearchIndices: Codable {
public let items: [String]
public let `default`: String
}

@_spi(InternalAmplifyConfiguration)
public struct GeofenceCollections: Codable {
public let items: [String]
public let `default`: String
Expand Down

0 comments on commit 3094f10

Please sign in to comment.