From 5a7d8b848550808a93c302d93b8149a5836d65e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olof=20Thore=CC=81n?= Date: Sat, 9 Nov 2024 13:50:33 +0100 Subject: [PATCH 1/2] lint --- Package.resolved | 9 --------- Package.swift | 8 -------- 2 files changed, 17 deletions(-) diff --git a/Package.resolved b/Package.resolved index 3101f931..1ca31849 100644 --- a/Package.resolved +++ b/Package.resolved @@ -45,15 +45,6 @@ "version" : "1.6.1" } }, - { - "identity" : "swiftlintplugin", - "kind" : "remoteSourceControl", - "location" : "https://github.com/lukepistrol/SwiftLintPlugin", - "state" : { - "revision" : "5a65f4074975f811da666dfe31a19850950b1ea4", - "version" : "0.56.2" - } - }, { "identity" : "swxmlhash", "kind" : "remoteSourceControl", diff --git a/Package.swift b/Package.swift index 47b140b4..9ca1e1df 100644 --- a/Package.swift +++ b/Package.swift @@ -44,7 +44,6 @@ let package = Package( .package(url: "https://github.com/drmohundro/SWXMLHash.git", from: "7.0.2"), .package(url: "https://github.com/kishikawakatsumi/KeychainAccess.git", from: "4.2.2"), .package(url: "https://github.com/MobileNativeFoundation/Kronos.git", exact: "4.2.2"), - .package(url: "https://github.com/lukepistrol/SwiftLintPlugin", from: "0.54.0"), .package(url: "https://github.com/apple/swift-log.git", from: "1.6.1"), .package(url: "https://github.com/Flight-School/AnyCodable", from: "0.6.0"), ] + (shouldIncludeDocCPlugin ? [.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0")] : []), @@ -52,7 +51,6 @@ let package = Package( .target( name: "Template", plugins: [ - .plugin(name: "SwiftLint", package: "SwiftLintPlugin"), ] ), .testTarget( @@ -68,7 +66,6 @@ let package = Package( .auth ], plugins: [ - .plugin(name: "SwiftLint", package: "SwiftLintPlugin"), ] ), .target( @@ -78,7 +75,6 @@ let package = Package( .AnyCodable, ], plugins: [ - .plugin(name: "SwiftLint", package: "SwiftLintPlugin"), ] ), .testTarget( @@ -96,7 +92,6 @@ let package = Package( .auth, ], plugins: [ - .plugin(name: "SwiftLint", package: "SwiftLintPlugin"), ] ), .testTarget( @@ -115,7 +110,6 @@ let package = Package( .Logging, ], plugins: [ - .plugin(name: "SwiftLint", package: "SwiftLintPlugin"), ] ), .testTarget( @@ -137,7 +131,6 @@ let package = Package( .process("README.md"), ], plugins: [ - .plugin(name: "SwiftLint", package: "SwiftLintPlugin"), ] ), .testTarget( @@ -151,7 +144,6 @@ let package = Package( .process("Resources"), ], plugins: [ - .plugin(name: "SwiftLint", package: "SwiftLintPlugin"), ] ), ] From 3addd37f740346230ad5e5023b8396817538dd20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olof=20Thore=CC=81n?= Date: Sat, 16 Nov 2024 18:09:30 +0100 Subject: [PATCH 2/2] work --- Package.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Package.swift b/Package.swift index 9ca1e1df..50c999e0 100644 --- a/Package.swift +++ b/Package.swift @@ -9,6 +9,7 @@ import PackageDescription let environmentVariables = ProcessInfo.processInfo.environment let shouldIncludeDocCPlugin = environmentVariables["INCLUDE_DOCC_PLUGIN"] == "true" +// swiftLint makes no sense in a library! let package = Package( name: "tidal-sdk-ios", platforms: [