-
Notifications
You must be signed in to change notification settings - Fork 114
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
Configure the SwiftLint build phase to explicitly run on every build #8098
base: trunk
Are you sure you want to change the base?
Conversation
You can test the changes from this Pull Request by:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want this? For instance, if I change the README
should it re-run SwiftLint?
Can we do something with input files like *.swift
that only runs if a Swift file is changed? Just slightly more efficient IMHO
Oh yes, good point. 🤔 I'm sure there's a pattern we can use in the Xcode UI list or |
@jkmassel I've been playing with the options here. To get the full advantage of having the input file list, we also need an output file. In the case of a build phase that runs SwiftLint, that would have to be a dummy file, see #8134. This screenshot shows the error one gets with "Based on dependency analysis" checked but no output files: I worry a setup with a dummy output file would end up being more confusing than useful. In particular when we consider:
|
Description
Addresses this warning:
We should be running SwiftLint on every build.
Testing instructions
Checkout this branch, build, and verify the warning is gone.
RELEASE-NOTES.txt
if necessary.