Rely on SPM plugins to consume SwiftLint and SwiftFormat

Use their latest releases and fix some violations and issues.

# Conflicts:
#	.github/workflows/linting.yml
#	.github/workflows/testing.yml
This commit is contained in:
Danny Mösch 2024-11-24 13:14:38 +01:00
parent 358908f161
commit 1bdf9d684b
40 changed files with 126 additions and 186 deletions

View file

@ -8,11 +8,12 @@
import XCTest
// swiftformat:disable:next sortedImports
@testable import passKit
@testable import Gopenpgp
class CryptoFrameworkTest: XCTestCase {
// swiftformat:disable:next sortedImports
@testable import passKit
final class CryptoFrameworkTest: XCTestCase {
private typealias MessageConverter = (CryptoPGPMessage, NSErrorPointer) -> CryptoPGPMessage?
private let testText = "Hello World!"

View file

@ -11,11 +11,11 @@ import XCTest
@testable import passKit
class PGPAgentTest: XCTestCase {
final class PGPAgentTest: XCTestCase {
private var keychain: KeyStore!
private var pgpAgent: PGPAgent!
private let testData = "Hello World!".data(using: .utf8)!
private let testData = Data("Hello World!".utf8)
override func setUp() {
super.setUp()