SwiftLintPlugin
A Swift Package Plugin for SwiftLint that will run SwiftLint on build time and show errors & warnings in Xcode.
Once SwiftLint offers their own implementation, this will be obsolete.
Implementation proposed here by @marcoboerner.
Add to Package
First add a dependency from this package:
dependencies: [
// ...
.package(url: "https://github.com/lukepistrol/SwiftLintPlugin", from: "0.0.1"),
]
Then add it to your targets as a plugin:
targets: [
.target(
name: "YOUR_TARGET",
dependencies: [],
plugins: [
.plugin(name: "SwiftLint", package: "SwiftLintPlugin")
]
),
]