Simple way to run SwiftLint for our Swift package Simple way to run SwiftLint for our Swift package swift swift

Simple way to run SwiftLint for our Swift package


A proposal in Swift, called Package Manager Extensible Build Tools (SE-0303) has been implemented, and is available in Swift 5.6, which is not yet released, as of October 2021.

A new target type, plugin (alongside executable and library) will be available to configure commands during the build. This means SwiftLint has some work to be a Swift package plugin. The SwiftLint authors could implement a package plugin that creates a command to run Swiftlint before the build.


I'll update when this proposal is implemented, and also when SwiftLint supports Extensible Build Tools