SwiftLintPlugin icon indicating copy to clipboard operation
SwiftLintPlugin copied to clipboard

SPM Showing Recent Messages Command PhaseScriptExecution failed with a nonzero exit code

Open 22Round opened this issue 3 months ago • 0 comments

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
Screenshot 2024-05-02 at 21 34 47

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")
            ]
        )
    ]
)

22Round avatar May 02 '24 17:05 22Round