-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
37 lines (35 loc) · 1.16 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// swift-tools-version: 5.6
import PackageDescription
let package = Package(
name: "SwiftLintPlugin",
products: [
.plugin(name: "SwiftLint", targets: ["SwiftLint"]),
.plugin(name: "SwiftLintPlugin", targets: ["SwiftLintPlugin"])
],
dependencies: [],
targets: [
.plugin(
name: "SwiftLintPlugin",
capability: .buildTool(),
dependencies: ["SwiftLintBinary"]
),
.plugin(
name: "SwiftLint",
capability: .command(
intent: .custom(
verb: "swiftlint",
description: "Lints source code"
),
permissions: [
.writeToPackageDirectory(reason: "This command lints source files"),
]
),
dependencies: [.target(name: "SwiftLintBinary")]
),
.binaryTarget(
name: "SwiftLintBinary",
url: "https://github.com/realm/SwiftLint/releases/download/0.57.1/SwiftLintBinary-macos.artifactbundle.zip",
checksum: "c88bf3e5bc1326d8ca66bc3f9eae786f2094c5172cd70b26b5f07686bb883899"
)
]
)