Skip to content

Commit

Permalink
[chore]: add SwiftLintPlugin (#106)
Browse files Browse the repository at this point in the history
- add SwiftLintPlugin
- adjust CI workflows
  • Loading branch information
lukepistrol authored Jan 6, 2023
2 parents f7883bb + 6f22e0d commit 8d3f663
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/scripts/build-docc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
-skipPackagePluginValidation \
OTHER_DOCC_FLAGS="--transform-for-static-hosting --hosting-base-path CodeEditTextView --output-path ./docs" | xcpretty
3 changes: 2 additions & 1 deletion .github/scripts/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ set -o pipefail && arch -"${ARCH}" xcodebuild \
-scheme CodeEditTextView \
-derivedDataPath ".build" \
-destination "platform=macos,arch=${ARCH}" \
clean test | xcpretty
-skipPackagePluginValidation \
clean test | xcpretty
9 changes: 9 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 7 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,20 @@ 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(
name: "CodeEditTextView",
dependencies: [
"STTextView",
"CodeEditLanguages",
],
plugins: [
.plugin(name: "SwiftLint", package: "SwiftLintPlugin")
]
),

Expand Down

0 comments on commit 8d3f663

Please sign in to comment.