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
Inline not working #176
Comments
Are the lines parts of your diff? |
You're not wrong, the GitHub API only allows commenting inline in lines inside the diff |
Can you please use |
Sure! Here's the output, I scrubbed the repo name and token, just in case lol:
|
Thank you, |
(posted from wrong account) Thanks for investigating! |
I'm having the same issues. Haven't had a look at danger-js yet, but looking at:
Could it be a problem, that swiftlint returns absolute paths for the files? Are these absolute paths stripped by danger-js? |
@absolute-heike thank you for noticing it (I didn't :D), I think you are right, the swiftlint plugin is supposed to delete the current path. https://github.com/danger/swift/blob/master/Sources/Danger/Plugins/SwiftLint/SwiftLint.swift#L79 Will investigate on why, also because the path looks odd |
@f-meloni Also found that code by now :) Though I haven't figured out, whats going wrong there. I think the full path is definitely the reason. When the warning is printed in our PR it has the full path in it, therefore it cannot inline on GitHub:
I think the path in the output above looks off, because @steven-diaz just scrubbed the repo name ;) |
Here is my output for reference:
Swiftlint output
|
Found out that https://github.com/danger/swift/blob/master/Sources/Danger/Plugins/SwiftLint/SwiftLint.swift#L135 is exiting early. But it's very weird 🤨
The |
Found it! 🎉
|
@absolute-heike thanks :) PRs are more than welcome |
PR is open :) |
Fixed by #179 |
Hi! I just started integrating today with TravisCI and everything seems to be working except for the inline functionality. Version. 1.1.0.
I have two warnings in my PR and they both show up as a single comment block on the PR rather than inline.
Here's some debug info:
Dangerfile.swift
travis.yml, relevant portion
travis output, relevant portion
The text was updated successfully, but these errors were encountered: