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.ymlfile) with the following reasons:resultobjects