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
Add Swiftlint #trivial #681
Conversation
SwiftLint found issuesWarnings
Generated by 🚫 Danger |
@heshamsalman updated the pull request - view changes |
@heshamsalman updated the pull request - view changes |
@rnystrom -- still having trouble getting this imported. any updates? |
Ok so this is adding about 35mb to the repo from including the SwiftLint framework 3x from each of the examples. Wow. Our internal tools flagged this and wont let us import it b/c of the size. I'm not totally sure what the best course of action here should be. Obviously the main issue is having 3x separate example projects, each with their own Couple options:
|
@rnystrom surprised it's 35mb. Restructuring into one |
Another option is to get the framework (1 version of it) store that in a directory (e.g. Examples/Swiftlint) and then reference that with a build script from all 3 projects. (So stop using CocoaPods to get Swiftlint). I'd honestly prefer this! edit// |
I think @Sherlouk 's idea is good. That's how the local |
Occam's Razor 😎 |
cc @rnystrom ? |
On board w/ @Sherlouk's plan, sounds great! |
@heshamsalman updated the pull request - view changes |
@heshamsalman updated the pull request - view changes |
@heshamsalman updated the pull request - view changes |
@heshamsalman updated the pull request - view changes |
@Sherlouk @jessesquires @rnystrom Should be a good deal smaller now. 👍 |
Changes look a lot nicer, will leave it to the insta crew to check on Phabricator! Hopefully we can get it in 🙏 |
@heshamsalman updated the pull request - view changes |
@heshamsalman updated the pull request - view changes |
@heshamsalman updated the pull request - view changes |
@heshamsalman updated the pull request - view changes |
@rnystrom @jessesquires Think we could try and see if Phabricator will except this some time this week? Would be nice to get this in (and I get that it's a pain to keep rebasing 😅) |
@Sherlouk - yep, everything looks alright to me! |
@jessesquires has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Ayyy 👍 |
Ok, bad news: So import succeeded but land failed internally because the binary files are too large. 😞 The best path forward is probably to run this on CI, but not include @rnystrom is out for a bit, when he returns we can sort this out. 👍 Sorry for the churn @heshamsalman ! 😅 |
@jessesquires I could alternatively change the SwiftLint script to rely on a user's And no worries re: churn |
@heshamsalman -- that sounds awesome! Let's definitely do that. That's how we handle |
@heshamsalman -- because of how the importing system works, we'll need to open a new PR 😄 |
@jessesquires haha classic. I'll re-open soon |
thanks so much @heshamsalman ! 🎉 |
Might be a good idea to create an issue for that? :) |
@BasThomas Yep! 😊 |
Summary: Replaces #642, #681 Issue ref: #394 Changes from last PR: - Deleted the shared SwiftLint folder, incl. all files (On the plus side, did this in the quest to get this PR in realm/SwiftLint#1513) - Changed the build script such that it runs the user's `HomeBrew` installation of SwiftLint instead of the local copy Integrates SwiftLint into DangerBot. You may want to append a ?w=1 to the end of the files-changed url to exclude whitespace-only changes. - [ ] All tests pass. Demo project builds and runs. - [ ] I added tests, an experiment, or detailed why my change isn't tested. - [ ] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes. - [ ] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md) Closes #741 Differential Revision: D5068134 Pulled By: jessesquires fbshipit-source-id: 68d6a57e0072672e38eeb94908d00f26bbd68fbc
Created #744. :) |
Replaces #642
Issue ref: #394
Integrates SwiftLint into DangerBot.
You may want to append a ?w=1 to the end of the files-changed url to exclude whitespace-only changes.
CHANGELOG.md
for any breaking changes, enhancements, or bug fixes.#trivial