SwiftLintPlugin
SwiftLintPlugin copied to clipboard
SPM Showing Recent Messages Command PhaseScriptExecution failed with a nonzero exit code
I have simple SPM and can't get Swiftlint
to work. I guess it can't find .swiftlint.yml
I added config file in folder but still getting same error
Linting Swift files at paths /Users/Downloads/SPMSwiftLint-Test/Sources/MyApp
Error: No lintable files found at paths: '/Users/Downloads/SPMSwiftLint-Test/Sources/MyApp'
Command PhaseScriptExecution failed with a nonzero exit code
Linting Swift files at paths /Users/SPMSwiftLint-Test/Sources/MyApp
Error: No lintable files found at paths: '/Users/SPMSwiftLint-Test/Sources/MyApp'
Command PhaseScriptExecution failed with a nonzero exit code
any clue what I'm missing?
Package.swift
// swift-tools-version:5.9
import PackageDescription
let package = Package(
name: "MyApp",
platforms: [
.iOS(.v16),
.macOS(.v13)
],
products: [
.executable(name: "MyApp", targets: ["MyApp"]),
],
dependencies: [
.package(url: "https://github.com/lukepistrol/SwiftLintPlugin.git", from: "0.54.0")
],
targets: [
.executableTarget(
name: "MyApp",
plugins: [
.plugin(name: "SwiftLint", package: "SwiftLintPlugin")
]
)
]
)