Skip to content

Instantly share code, notes, and snippets.

@lordcodes
Created March 10, 2020 09:54
Show Gist options
  • Save lordcodes/c593fa7150ee8f19c66583ebfb5027df to your computer and use it in GitHub Desktop.
Save lordcodes/c593fa7150ee8f19c66583ebfb5027df to your computer and use it in GitHub Desktop.
Code for the article "Manage automation tasks using Swift Package Manager"
extension Tasks {
struct Linting: ParsableCommand {
static var configuration = CommandConfiguration(
commandName: "lint",
abstract: "Lint the Uploader codebase, such as static analysis."
)
func run() throws {
try runShell("swift run swiftformat . --lint", continueOnError: true)
try runShell("swift run swiftlint")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment