Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 17 additions & 17 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@ import PackageDescription
let isDevelop = true

let devProducts: [Product] = isDevelop
? [
.library(name: "DangerDeps", type: .dynamic, targets: ["Danger-Swift"])
] : []
? [
.library(name: "DangerDeps", type: .dynamic, targets: ["Danger-Swift"])
] : []
let devDependencies: [Package.Dependency] = isDevelop
? [
.package(url: "https://github.com/shibapm/Komondor", from: "1.0.0"),
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.35.8"),
.package(url: "https://github.com/Realm/SwiftLint", from: "0.38.0"),
.package(name: "SnapshotTesting", url: "https://github.com/pointfreeco/swift-snapshot-testing.git", from: "1.7.1"),
.package(url: "https://github.com/shibapm/Rocket", from: "0.4.0"),
.package(url: "https://github.com/SwiftDocOrg/swift-doc", .branch("1.0.0-rc.1")),
] : []
? [
.package(url: "https://github.com/shibapm/Komondor", from: "1.0.0"),
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.35.8"),
.package(url: "https://github.com/Realm/SwiftLint", from: "0.38.0"),
.package(name: "SnapshotTesting", url: "https://github.com/pointfreeco/swift-snapshot-testing.git", from: "1.7.1"),
.package(url: "https://github.com/shibapm/Rocket", from: "0.4.0"),
.package(url: "https://github.com/SwiftDocOrg/swift-doc", .branch("1.0.0-rc.1")),
] : []
let devTargets: [Target] = isDevelop
? [
.testTarget(name: "DangerTests", dependencies: ["Danger", "DangerFixtures", "SnapshotTesting"]),
.testTarget(name: "RunnerLibTests", dependencies: ["RunnerLib", "SnapshotTesting"], exclude: ["__Snapshots__"]),
.testTarget(name: "DangerDependenciesResolverTests", dependencies: ["DangerDependenciesResolver", "SnapshotTesting"], exclude: ["__Snapshots__"]),
]
: []
? [
.testTarget(name: "DangerTests", dependencies: ["Danger", "DangerFixtures", "SnapshotTesting"]),
.testTarget(name: "RunnerLibTests", dependencies: ["RunnerLib", "SnapshotTesting"], exclude: ["__Snapshots__"]),
.testTarget(name: "DangerDependenciesResolverTests", dependencies: ["DangerDependenciesResolver", "SnapshotTesting"], exclude: ["__Snapshots__"]),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ Line should be 140 characters or less: currently 154 characters (line_length)

]
: []

let package = Package(
name: "danger-swift",
Expand Down
2 changes: 1 addition & 1 deletion Sources/RunnerLib/SPMDanger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public struct SPMDanger {
range: NSRange(location: 0, length: packageContent.count))

if let depsLibNameRange = firstMatch?.range(at: 1),
let range = Range(depsLibNameRange, in: packageContent) {
let range = Range(depsLibNameRange, in: packageContent) {
depsLibName = String(packageContent[range])
} else {
return nil
Expand Down