openhab-ios
openhab-ios copied to clipboard
Xcode Build Tool Plug-ins
Use Xcode Build Tool Plug-ins for SwiftFormat and SwiftLint
@timbms @digitaldan are you both on Xcode 14 yet?
I would like to integrate SwiftFormat and SwiftLint as Xcode Build Tool Plug-ins and that would require Xcode 14. This has a couple of benefits, like reduced build times.
For now I'd use my own plugin versions, until Apple fixes https://github.com/SwiftGen/SwiftGenPlugin/issues/2 (I've filed FB11432401 a while ago, but it's not resolved yet).
@timbms @digitaldan are you both on Xcode 14 yet?
Yep.
Reduced build times sound awesome, its quite a time suck whatever xcode is currently doing to recompile, even with small changes. I'll give this a go today and let you know if i run into any issues, thanks!
@timbms @digitaldan are you both on Xcode 14 yet?
Yes
I would like to integrate SwiftFormat and SwiftLint as Xcode Build Tool Plug-ins and that would require Xcode 14. This has a couple of benefits, like reduced build times.
Good idea swiftformat 0.50 also knows about swift 5.7 allowing for nice syntax shortcuts
For now I'd use my own plugin versions, until Apple fixes https://github.com/SwiftGen/SwiftGenPlugin/issues/2 (I've filed FB11432401 a while ago, but it's not resolved yet).
Good idea swiftformat 0.50 also knows about swift 5.7 allowing for nice syntax shortcuts
@weakfl you were already a step ahead; I have seen it later that the PR already considers swift 5.7
@timbms yes, I've set the swift version to 5.7 and the files should already be formatted accordingly.
@timbms @digitaldan I think we can merge?
Go ahead and merge👍🏽