From 7a05c3f433e340bc0bcae798546eb64023513e5a Mon Sep 17 00:00:00 2001 From: Andrei Solovev Date: Wed, 5 Jul 2023 10:26:16 +0700 Subject: [PATCH] Fix lint warnings --- OmiseSDK/CreditCardFormViewController.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OmiseSDK/CreditCardFormViewController.swift b/OmiseSDK/CreditCardFormViewController.swift index 300baaff..2529a7e3 100644 --- a/OmiseSDK/CreditCardFormViewController.swift +++ b/OmiseSDK/CreditCardFormViewController.swift @@ -70,7 +70,6 @@ public protocol OMSCreditCardFormViewControllerDelegate: AnyObject { // swiftlint:disable:next attributes @objc func creditCardForm(_ controller: CreditCardFormViewController, didFailWithError error: NSError) } -// swiftlint:enable line_length @available(*, deprecated, renamed: "CreditCardFormViewController") public typealias CreditCardFormController = CreditCardFormViewController @@ -187,7 +186,7 @@ public class CreditCardFormViewController: UIViewController, PaymentChooserUI, P @objc public static let defaultErrorMessageTextColor = UIColor.error /// A boolean flag that enables/disables Card.IO integration. - @available(*, unavailable, message: "Built in support for Card.ios was removed. You can implement it in your app and call the setCreditCardInformation(number:name:expiration:) method") // swiftlint:disable:this line_length + @available(*, unavailable, message: "Built in support for Card.ios was removed. You can implement it in your app and call the setCreditCardInformation(number:name:expiration:) method") @objc public var cardIOEnabled = true /// Factory method for creating CreditCardFormController with given public key. @@ -204,7 +203,7 @@ public class CreditCardFormViewController: UIViewController, PaymentChooserUI, P } @available(*, deprecated, - message: "Please use the new method that confrom to Objective-C convention +[OMSCreditCardFormViewController creditCardFormViewControllerWithPublicKey:] as of this method will be removed in the future release.", // swiftlint:disable:this line_length + message: "Please use the new method that confrom to Objective-C convention +[OMSCreditCardFormViewController creditCardFormViewControllerWithPublicKey:] as of this method will be removed in the future release.", renamed: "makeCreditCardFormViewController(withPublicKey:)") @objc(makeCreditCardFormWithPublicKey:) public static func __makeCreditCardForm(withPublicKey publicKey: String) -> CreditCardFormViewController { // swiftlint:disable:this identifier_name return CreditCardFormViewController.makeCreditCardFormViewController(withPublicKey: publicKey) @@ -249,6 +248,7 @@ public class CreditCardFormViewController: UIViewController, PaymentChooserUI, P self.setCreditCardInformationWith(number: number, name: name, expiration: expiration) } + // swiftlint:enable line_length // need to refactor loadView, removing super results in crash // swiftlint:disable:next prohibited_super_call