-
Notifications
You must be signed in to change notification settings - Fork 737
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 to build script #80
Conversation
…ariable name in this use case.
This does result in 242 issues, maybe we can find a way of just checking the |
great work thx! |
You can use The main concern is indeed to ensure the code generated by SwiftGen match SwiftLint styling rules, so the I think we could use Then we could use the simple |
I just realized a problem: So I'm not sure there is a proper way to validate that the templates or their output does not violate SwiftLint rules. Maybe there is hope with the |
e8e8587
to
76aff13
Compare
d251ff7
to
3d4251e
Compare
Hi @AJ9 I finally took the time to merge this. In fact I reintegrated SwiftLint the way you started to do it (but in my own branch to start anew since your branch started to be a bit behind the latest merged PRs), and in addition I added linting for both the templates and the SwiftGen code itself, and fixed all the warnings & errors generated by the listing. Thanks again for taking a stab at it! |
As discussed in #79 and here, adding SwiftLint as a build script will reduce regression SwiftLint errors. This build script does check the entire SwiftGen project and I've added the following exclusions (to the
.swiftlint.yml
file) with the following reasons:result
objects