Skip to content

Commit 8d3f663

Browse files
authored
[chore]: add SwiftLintPlugin (#106)
- add SwiftLintPlugin - adjust CI workflows
2 parents f7883bb + 6f22e0d commit 8d3f663

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

.github/scripts/build-docc.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ export LC_CTYPE=en_US.UTF-8
44

55
set -o pipefail && xcodebuild clean docbuild -scheme CodeEditTextView \
66
-destination generic/platform=macos \
7-
OTHER_DOCC_FLAGS="--transform-for-static-hosting --hosting-base-path CodeEditTextView --output-path ./docs" | xcpretty
7+
-skipPackagePluginValidation \
8+
OTHER_DOCC_FLAGS="--transform-for-static-hosting --hosting-base-path CodeEditTextView --output-path ./docs" | xcpretty

.github/scripts/tests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ set -o pipefail && arch -"${ARCH}" xcodebuild \
1717
-scheme CodeEditTextView \
1818
-derivedDataPath ".build" \
1919
-destination "platform=macos,arch=${ARCH}" \
20-
clean test | xcpretty
20+
-skipPackagePluginValidation \
21+
clean test | xcpretty

Package.resolved

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,20 @@ let package = Package(
2121
url: "https://github.com/CodeEditApp/CodeEditLanguages.git",
2222
exact: "0.1.5"
2323
),
24+
.package(
25+
url: "https://github.com/lukepistrol/SwiftLintPlugin",
26+
from: "0.2.2"
27+
),
2428
],
2529
targets: [
2630
.target(
2731
name: "CodeEditTextView",
2832
dependencies: [
2933
"STTextView",
3034
"CodeEditLanguages",
35+
],
36+
plugins: [
37+
.plugin(name: "SwiftLint", package: "SwiftLintPlugin")
3138
]
3239
),
3340

0 commit comments

Comments
 (0)