Open MinuteCode opened 5 years ago
This looks a danger-js issue, in the array of the files the item at index 45 is nill, I don't know why, it probably is related to your diff from master (danger-swift local uses your diff from your branch to master)
Hi, thanks for your answer !
At first I didn't have the master branch locally so I took care of that. I will try and merge where I can to reduce the diff output it's been a long time coming anyway :) Maybe this will work out.
Is there a way that I could set the branch against which danger has to work ?
No, but I think it could be a good addition to https://github.com/danger/danger-js/blob/master/source/commands/danger-local.ts
You can actually use --base
to set the branch, I think
Ok thanks ! Will try that
Hi ! I'm trying to setup danger-swift to run with my project and I'm trying to run it locally. I cannot figure out what is wrong with my setup but the result is that danger-swift local fails when I try to run it. Here are my implementation's details :
Package.swift
Same as the one in getting started.
DangerDummy.swift
contains one line of code that imports FoundationDangerfile.swift
Once again, it's the same as in the getting started
danger-swift local logs
The message I get from Danger is consistent with what's in my Dangerfile but it doesn't looks like it runs on the right project.
I tried to wrap my head around the meaning of
ERROR: Failed to parse JSON: valueNotFound(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "danger", intValue: nil), CodingKeys(stringValue: "git", intValue: nil), CodingKeys(stringValue: "created_files", intValue: nil), _JSONKey(stringValue: "Index 45", intValue: 45)], debugDescription: "Expected String but found null value instead.", underlyingError: nil))
from other similar issues but in vain tooLooking forward to your answer and thank you for your time !