-
Notifications
You must be signed in to change notification settings - Fork 480
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
Danger crashes if multiple inline comments have same severity, file and line number #1332
Comments
Fair, yeah, seems reasonable |
I wrote the following spec to reproduce this issue but it passes. @pahnev Could you tell me what values in |
Hi, @manicmaniac, so here's my Dangerfile:
And here's the output:
And if I make the SwiftLint elevate the message to an error: Both Swiftformat and SwiftLint work with the desired command alone, but not together. |
Report
What did you do?
While implementing support for SwiftFormat plugin's inline_mode, I noticed that if multiple plugins are trying to add inline_comment with the same severity to the same file and line, danger crashes with
lib/danger/request_sources/bitbucket_server.rb:158:in 'sort': comparison of Danger::Violation with Danger::Violation failed (ArgumentError)
.Github seems to have the same sort.
https://github.com/danger/danger/blob/master/lib/danger/request_sources/bitbucket_server.rb#L158
What did you expect to happen?
Expected danger not to crash, and all comments to be sorted out in any order.
What happened instead?
💥
Your Environment
Dangerfile
The text was updated successfully, but these errors were encountered: