Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPM danger #174

Merged
merged 16 commits into from
Jan 25, 2019
Merged

SPM danger #174

merged 16 commits into from
Jan 25, 2019

Conversation

f-meloni
Copy link
Member

This is a possible solution for #139
At the moment the two solutions coexist.
It requires both to define a target dependant from Danger + dependencies and a library called

.library(name: "DangerDeps", type: .dynamic, targets: ["Danger-Swift"]),

The name of the target is not relevant.

@f-meloni f-meloni requested a review from orta January 12, 2019 21:00
@DangerCI
Copy link

DangerCI commented Jan 12, 2019

Warnings
⚠️

Sources/Danger-Swift/Fake.swift#L1 - Files should have a single trailing newline. (trailing_newline)

Generated by 🚫 dangerJS against fd6679e

@f-meloni
Copy link
Member Author

I added a temporary message taken from Yams to check if was correctly resolving the dependency

@f-meloni f-meloni changed the title [WIP] Spm danger SPM danger Jan 15, 2019
public init?(packagePath: String = "Package.swift") {
let packageContent = (try? String(contentsOfFile: packagePath)) ?? ""

let regex = try? NSRegularExpression(pattern: "\\.library\\(name:[\\ ]?\"(\(SPMDanger.dangerDepsPrefix)[A-Za-z]*)", options: .allowCommentsAndWhitespace)
Copy link

@DangerCI DangerCI Jan 25, 2019

Choose a reason for hiding this comment

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

  • ⚠️ Line should be 120 characters or less: currently 123 characters (line_length)

@f-meloni
Copy link
Member Author

merge on green

@peril-staging peril-staging bot merged commit 0acbb9e into master Jan 25, 2019
@HeEAaD HeEAaD deleted the spm_danger branch January 29, 2019 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants