Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwiftLintCommandPlugin Unknown option '--target' #5603

Open
kostasniks opened this issue May 24, 2024 · 1 comment
Open

SwiftLintCommandPlugin Unknown option '--target' #5603

kostasniks opened this issue May 24, 2024 · 1 comment
Labels
integration Issues related to integration of SwiftLint into toolchains. repro-needed

Comments

@kostasniks
Copy link

kostasniks commented May 24, 2024

Describe the bug

Greetings 馃憢 ,
I used the new CommandPlugin but for some reason when I am running it in one of my packages it results to the following error:

CleanShot 2024-05-24 at 14 34 59
CleanShot 2024-05-24 at 14 35 19
CleanShot 2024-05-24 at 14 32 41

My package.swift looks like this:

// MARK: Networking
        .target(
            name: "Networking",
            dependencies: [],
            plugins: [.plugin(name: "SwiftLintCommandPlugin", package: "SwiftLint")]
        ),

Environment

  • SwiftLint version: 0.55.1
  • Installation method used: Homebrew
  • Paste your configuration file: The default one.
@SimplyDanny
Copy link
Collaborator

The plugin itself doesn't add the --target option, so it must come from Xcode constructing the call. Can you provide the complete commend that Xcode runs?

@SimplyDanny SimplyDanny added the integration Issues related to integration of SwiftLint into toolchains. label Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration Issues related to integration of SwiftLint into toolchains. repro-needed
Projects
None yet
Development

No branches or pull requests

2 participants