Skip to content

Commit

Permalink
Merge pull request #11 from mariana0412/feature/swiftlint-plugin
Browse files Browse the repository at this point in the history
Add swiftlint plugin to the project
  • Loading branch information
mariana0412 authored Nov 17, 2024
2 parents af781c5 + c100479 commit 7b22c9b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
15 changes: 15 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"originHash" : "8695267b6e72b17556cd457c8e3dcef91b5a672670dcbcb10c205021ec2323e9",
"pins" : [
{
"identity" : "swiftlintplugins",
"kind" : "remoteSourceControl",
"location" : "https://github.com/SimplyDanny/SwiftLintPlugins",
"state" : {
"revision" : "7c80ce6f142164b0201871e580b021d1b2c69804",
"version" : "0.57.0"
}
}
],
"version" : 3
}
12 changes: 10 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,22 @@ let package = Package(
name: "CardFlipster",
targets: ["CardFlipster"])
],
dependencies: [
.package(url: "https://github.com/SimplyDanny/SwiftLintPlugins", from: "0.57.0")
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "CardFlipster"),
name: "CardFlipster",
path: "Sources",
plugins: [.plugin(name: "SwiftLintBuildToolPlugin", package: "SwiftLintPlugins")]
),
.testTarget(
name: "CardFlipsterTests",
dependencies: ["CardFlipster"]
dependencies: ["CardFlipster"],
path: "Tests/CardFlipsterTests",
plugins: [.plugin(name: "SwiftLintBuildToolPlugin", package: "SwiftLintPlugins")]
)
]
)

0 comments on commit 7b22c9b

Please sign in to comment.