forked from lukepistrol/SwiftLintPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
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.54.0/SwiftLintBinary-macos.artifactbundle.zip",
checksum: "963121d6babf2bf5fd66a21ac9297e86d855cbc9d28322790646b88dceca00f1"
),
.plugin(
name: "SwiftLint",
capability: .buildTool(),
dependencies: ["SwiftLintBinary"]
),
.plugin(
name: "SwiftLintFix",
capability: .command(
intent: .sourceCodeFormatting(),
permissions: [.writeToPackageDirectory(reason: "Fixes fixable lint issues")]
),
dependencies: ["SwiftLintBinary"]
),
]
)