-
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.0/SwiftLintBinary-macos.artifactbundle.zip",
checksum: "a1bbafe57538077f3abe4cfb004b0464dcd87e8c23611a2153c675574b858b3a"
)
]
)