-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SwiftLintCommandPlugin Unknown option '--target' #5603
Comments
The plugin itself doesn't add the |
Hello, Apple's documentation about Plugins says |
You're right. The current solution still passes the original list of arguments to the |
Thanks! That helps get rid of the error. I ran the command plugin from within Xcode and didn't see any linter warnings when there should have been. But based on this doc:
It sounds like the command plugin is only supported from the command line and not from within Xcode. Is that correct? |
That's correct at present. You can, however, run it in a build phase. |
@zkline101: In case you are interested, with #5867 SwiftLint would be available as an Xcode command plugin as well. |
Thank you for working on that. I tested it out and I can see the linter warnings in the plug-in command log. Is it possible to get those warnings to show up as they would if you were using the build command? Where the warnings should up as normal warnings would in Xcode. |
The output of both plugin variants should be exactly the same. Might be a problem with Xcode not respecting printed warnings from Xcode Commands Plugins. I don't know if that's intended. In terms of SwiftLint, it doesn't seem like we can do anything about it. |
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:
My package.swift looks like this:
Environment
The text was updated successfully, but these errors were encountered: