From ae138e82811f2a1766900bc6a941e6f1ef551cfd Mon Sep 17 00:00:00 2001 From: Lukas Pistrol Date: Fri, 6 Jan 2023 21:02:37 +0100 Subject: [PATCH] add SwiftLintPlugin --- .github/scripts/build-docc.sh | 3 ++- .github/scripts/tests.sh | 3 ++- Package.resolved | 9 +++++++++ Package.swift | 7 +++++++ 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/scripts/build-docc.sh b/.github/scripts/build-docc.sh index cdaa48adf..b50abd178 100755 --- a/.github/scripts/build-docc.sh +++ b/.github/scripts/build-docc.sh @@ -4,4 +4,5 @@ export LC_CTYPE=en_US.UTF-8 set -o pipefail && xcodebuild clean docbuild -scheme CodeEditTextView \ -destination generic/platform=macos \ - OTHER_DOCC_FLAGS="--transform-for-static-hosting --hosting-base-path CodeEditTextView --output-path ./docs" | xcpretty \ No newline at end of file + -skipPackagePluginValidation \ + OTHER_DOCC_FLAGS="--transform-for-static-hosting --hosting-base-path CodeEditTextView --output-path ./docs" | xcpretty diff --git a/.github/scripts/tests.sh b/.github/scripts/tests.sh index 32d3546fe..c90874f48 100755 --- a/.github/scripts/tests.sh +++ b/.github/scripts/tests.sh @@ -17,4 +17,5 @@ set -o pipefail && arch -"${ARCH}" xcodebuild \ -scheme CodeEditTextView \ -derivedDataPath ".build" \ -destination "platform=macos,arch=${ARCH}" \ - clean test | xcpretty \ No newline at end of file + -skipPackagePluginValidation \ + clean test | xcpretty diff --git a/Package.resolved b/Package.resolved index 490c7ede3..8bca37169 100644 --- a/Package.resolved +++ b/Package.resolved @@ -18,6 +18,15 @@ "version" : "0.1.2" } }, + { + "identity" : "swiftlintplugin", + "kind" : "remoteSourceControl", + "location" : "https://github.com/lukepistrol/SwiftLintPlugin", + "state" : { + "revision" : "f69b412a765396d44dc9f4788a5b79919c1ca9e3", + "version" : "0.2.2" + } + }, { "identity" : "swifttreesitter", "kind" : "remoteSourceControl", diff --git a/Package.swift b/Package.swift index 55e7bfdc1..70d220139 100644 --- a/Package.swift +++ b/Package.swift @@ -21,6 +21,10 @@ let package = Package( url: "https://github.com/CodeEditApp/CodeEditLanguages.git", exact: "0.1.5" ), + .package( + url: "https://github.com/lukepistrol/SwiftLintPlugin", + from: "0.2.2" + ), ], targets: [ .target( @@ -28,6 +32,9 @@ let package = Package( dependencies: [ "STTextView", "CodeEditLanguages", + ], + plugins: [ + .plugin(name: "SwiftLint", package: "SwiftLintPlugin") ] ),