-
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
Running SwiftLint across all projects/targets in a workspace #802
Comments
note to self: maybe there is a way to specify multiple paths to run swiftlint on - in that case only one project would need to have the run script which could run the lint command on all projects. Or maybe even just specify one path to run on but specify the path of the parent directory of the project. |
I created https://github.com/norio-nomura/ExtraBuildPhase as Xcode plugin for such purpose. |
My solution that seems to work fine is to pick whichever target I will normally be building and only put the run script for that target, but make the run script specify the --path to be one directory up.
|
Worked for me :) Thanks for the hint! |
I have a workspace with multiple sibling projects that I maintain in a single workspace.
I have set up a run script phase for the target of every project.
Is there a way to avoid swapping targets and building for every target to see the SwiftLint warnings for that target? I would like to build for a single target and see SwiftLint warnings across all of my projects/targets.
The text was updated successfully, but these errors were encountered: