From d25f1e09fb58d9dd00a6ef40cff2d077ea4a01ed Mon Sep 17 00:00:00 2001 From: Kabir Oberai Date: Wed, 28 May 2025 15:34:48 +0530 Subject: [PATCH] Use plugin --- .github/workflows/swiftlint.yml | 2 +- Package.resolved | 11 ++++++++++- Package.swift | 2 ++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/swiftlint.yml b/.github/workflows/swiftlint.yml index 6e1b167..a17c7c2 100644 --- a/.github/workflows/swiftlint.yml +++ b/.github/workflows/swiftlint.yml @@ -16,6 +16,6 @@ jobs: ! ${WORKING_DIRECTORY+false} && cd - > /dev/null sed -E "s/$(pwd|sed 's/\//\\\//g')\///" } - swiftlint | \ + swift package plugin --allow-writing-to-package-directory swiftlint | \ stripPWD | \ sed -E 's/^(.*):([0-9]+):([0-9]+): (warning|error|[^:]+): (.*)/::\4 file=\1,line=\2,col=\3::\5/' diff --git a/Package.resolved b/Package.resolved index dbef737..a09c633 100644 --- a/Package.resolved +++ b/Package.resolved @@ -1,5 +1,5 @@ { - "originHash" : "d08ba8535e09303ac5be5621b8aea1a2409ebcb2ab566d661a63ec8ab5825189", + "originHash" : "5cb26d4cfe9e9240988f3a6c406b8a8b8ab226607c2c80a29f72214e0a48fdb6", "pins" : [ { "identity" : "aexml", @@ -334,6 +334,15 @@ "version" : "6.0.3" } }, + { + "identity" : "swiftlintplugins", + "kind" : "remoteSourceControl", + "location" : "https://github.com/SimplyDanny/SwiftLintPlugins", + "state" : { + "revision" : "8545ddf4de043e6f2051c5cf204f39ef778ebf6b", + "version" : "0.59.1" + } + }, { "identity" : "swiftymobiledevice", "kind" : "remoteSourceControl", diff --git a/Package.swift b/Package.swift index b7a293e..08d4ca2 100644 --- a/Package.swift +++ b/Package.swift @@ -62,6 +62,8 @@ let package = Package( .package(url: "https://github.com/pointfreeco/swift-concurrency-extras", from: "1.3.0"), .package(url: "https://github.com/pointfreeco/swift-dependencies", from: "1.6.2"), + .package(url: "https://github.com/SimplyDanny/SwiftLintPlugins", exact: "0.59.1"), + .package(url: "https://github.com/attaswift/BigInt", from: "5.5.0"), .package(url: "https://github.com/mxcl/Version", from: "2.1.0"), .package(url: "https://github.com/jpsim/Yams", from: "5.1.3"),