File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed
Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 1313 steps :
1414 - uses : actions/checkout@v4
1515
16- - name : Install SwiftLint (official installer)
17- run : |
18- curl -L https://github.com/realm/SwiftLint/releases/latest/download/portable_swiftlint.zip -o swiftlint.zip
19- unzip swiftlint.zip -d swiftlint_bin
20- sudo mv swiftlint_bin/swiftlint /usr/local/bin/swiftlint
21- sudo chmod +x /usr/local/bin/swiftlint
22-
2316 - name : Run SwiftLint
24- run : /usr/local/bin/ swiftlint --strict
17+ run : swiftlint --strict
Original file line number Diff line number Diff line change @@ -40,3 +40,13 @@ let package = Package(
4040 )
4141 ]
4242)
43+
44+ #if os(macOS)
45+ // Add the documentation compiler plugin if possible
46+ package . dependencies. append (
47+ . package ( url: " https://github.com/lukepistrol/SwiftLintPlugin " , from: " 0.52.4 " )
48+ )
49+ package . targets. first? . plugins? . append (
50+ . plugin( name: " SwiftLint " , package : " SwiftLintPlugin " )
51+ )
52+ #endif
You can’t perform that action at this time.
0 commit comments