Skip to content

Commit de3047d

Browse files
committed
Add SwiftLint as a non-target SPM dependency
- Useful for local linting during development when working on the Package directly (rather than via the Xcode workspace)
1 parent 46b36d1 commit de3047d

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

.swiftlint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
excluded:
2+
- .build
23
- Carthage
34
- Package.swift
45
- Consumption-Tests/*/Carthage

Package.resolved

Lines changed: 54 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ let package = Package(
1111
dependencies: [
1212
.package(url: "https://github.com/pusher/NWWebSocket.git", .upToNextMajor(from: "0.5.2")),
1313
.package(url: "https://github.com/bitmark-inc/tweetnacl-swiftwrap", .upToNextMajor(from: "1.0.0")),
14+
// Source code linting
15+
.package(url: "https://github.com/realm/SwiftLint", .upToNextMajor(from: "0.43.1"))
1416
],
1517
targets: [
1618
.target(

0 commit comments

Comments
 (0)