Skip to content

Commit 642751f

Browse files
Merge pull request #33 from componentskit/github-actions
Add SwiftLint to GitHub Actions + Remove SwiftLint Plugin
2 parents 5580d87 + bf088b4 commit 642751f

File tree

4 files changed

+18
-14
lines changed

4 files changed

+18
-14
lines changed

.github/workflows/swiftlint.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: SwiftLint
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/swiftlint.yml'
7+
- '.swiftlint.yml'
8+
- '**/*.swift'
9+
10+
jobs:
11+
SwiftLint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Run SwiftLint
16+
uses: norio-nomura/[email protected]
17+
with:
18+
args: --strict

.swiftlint.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,6 @@ function_body_length:
409409

410410
included:
411411
- Sources
412-
- Examples
413412

414413
excluded:
415414
- .swiftpm

ComponentsKit.xcworkspace/xcshareddata/swiftpm/Package.resolved

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

Package.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,12 @@ let package = Package(
1515
],
1616
dependencies: [
1717
.package(url: "https://github.com/componentskit/AutoLayout", from: "1.0.0"),
18-
.package(url: "https://github.com/SimplyDanny/SwiftLintPlugins", from: "0.57.0"),
1918
],
2019
targets: [
2120
.target(
2221
name: "ComponentsKit",
2322
dependencies: [
2423
.product(name: "AutoLayout", package: "AutoLayout")
25-
],
26-
plugins: [
27-
.plugin(name: "SwiftLintBuildToolPlugin", package: "SwiftLintPlugins")
2824
]
2925
)
3026
]

0 commit comments

Comments
 (0)