-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Package.swift
45 lines (41 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
38
39
40
41
42
43
44
45
// swift-tools-version: 5.7
import PackageDescription
let package = Package(
name: "SwiftLintPlugin",
platforms: [
.iOS(.v13),
.watchOS(.v6),
.macOS(.v10_15),
.tvOS(.v13),
],
products: [
.plugin(
name: "SwiftLint",
targets: ["SwiftLint"]
),
.plugin(
name: "SwiftLintFix",
targets: ["SwiftLintFix"]
),
],
targets: [
.binaryTarget(
name: "SwiftLintBinary",
url: "https://github.com/realm/SwiftLint/releases/download/0.57.1/SwiftLintBinary-macos.artifactbundle.zip",
checksum: "c88bf3e5bc1326d8ca66bc3f9eae786f2094c5172cd70b26b5f07686bb883899"
),
.plugin(
name: "SwiftLint",
capability: .buildTool(),
dependencies: ["SwiftLintBinary"]
),
.plugin(
name: "SwiftLintFix",
capability: .command(
intent: .sourceCodeFormatting(),
permissions: [.writeToPackageDirectory(reason: "Fixes fixable lint issues")]
),
dependencies: ["SwiftLintBinary"]
),
]
)