Created
March 10, 2020 09:54
-
-
Save lordcodes/c593fa7150ee8f19c66583ebfb5027df to your computer and use it in GitHub Desktop.
Code for the article "Manage automation tasks using Swift Package Manager"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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