Add SwiftLint to your Xcode Project or Swift Package as a Plugin
5am-swift-lint
Add SwiftLint to your Xcode Project or Swift Package as a Plugin.
Info
- SwiftLint Version: 0.50.3
- SwiftLint Repo: https://github.com/realm/SwiftLint/
Requirements
- macOS version 10.15 Catalina
- Swift 5.7
Add to Xcode Project
- Add this repo https://github.com/5amdotis/5am-swift-lint as Swift Package to your project
- Add
SwiftLintPlugin
to Run Build Tool Plug-ins in Build Phases - Build project
- Trust and Enable Build Plug-ins
- For CI/CD: add option
-skipPackagePluginValidation
toxcodebuild
command
Add to Swift Package
- Add dependency
dependencies: [
// ...
.package(url: "https://github.com/5amdotis/5am-swift-lint", from: "1.0.0"),
]
- Add to target
targets: [
.target(
name: "YOUR_TARGET",
dependencies: [],
plugins: [
.plugin(name: "SwiftLintPlugin", package: "5am-swift-lint")
]
),
]
- Build package
- Trust and Enable Build Plug-ins
License
5am-swift-lint is licenced under BSD 3-Clause License.