From 55406d62f0d1a0565cfd52a5dc70f456649baf29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Herculano?= Date: Fri, 23 Feb 2024 17:41:48 +0100 Subject: [PATCH] fix linting issues --- ConsentViewController/Classes/SPConsentManager.swift | 5 ++++- .../Helpers/CustomMatchers.swift | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ConsentViewController/Classes/SPConsentManager.swift b/ConsentViewController/Classes/SPConsentManager.swift index 28fc7e5eb..7f72cc16e 100644 --- a/ConsentViewController/Classes/SPConsentManager.swift +++ b/ConsentViewController/Classes/SPConsentManager.swift @@ -8,7 +8,8 @@ import Foundation import UIKit -// swiftlint:disable file_length + +// swiftlint:disable file_length function_parameter_count @objcMembers public class SPConsentManager: NSObject { static let DefaultTimeout = TimeInterval(30) public static var shouldCallErrorMetrics = true @@ -701,3 +702,5 @@ func mainSync(execute work: () throws -> T) rethrows -> T { return try DispatchQueue.main.sync { try work() } } + +// swiftlint:enable function_parameter_count diff --git a/Example/ConsentViewController_ExampleTests/Helpers/CustomMatchers.swift b/Example/ConsentViewController_ExampleTests/Helpers/CustomMatchers.swift index 1da110685..d4dd7a8ef 100644 --- a/Example/ConsentViewController_ExampleTests/Helpers/CustomMatchers.swift +++ b/Example/ConsentViewController_ExampleTests/Helpers/CustomMatchers.swift @@ -126,7 +126,7 @@ public func containQueryParam(_ name: String, withValue value: String) -> Predic guard let actual = try actual.evaluate(), let params = actual.queryParams else { - return PredicateResult(bool: false, message: .fail("could not get query params from URL(\(try? actual.evaluate()?.absoluteString))")) + return PredicateResult(bool: false, message: .fail("could not get query params from URL(\(try? actual.evaluate()?.absoluteString as Any))")) } var pass = false var message = ""