Adding support for Package Manager Extensible Build Tools (SE-0303). #3679
Description
While SwiftLint works correctly when working on a normal Xcode project that allows adding run scripts, working on a package for the Swift Package Manager is a whole other can of worms. Since there is no possible way for adding custom run scripts to swift packages, there is no possible customization.
To this problem, Apple has released SE-0303 which introduces a new SwiftPM target type called plugin
, which basically are Swift targets that use specialized API in a new PackagePlugin
library that is provided by SwiftPM, to configure commands that will run during the build.
I believe this was already introduced in Swift 5.5 most recent beta. It would be really nice to have these new features implemented in SwiftLint so that we can also see syntax corrections on Swift packages.
Thanks!