-
Notifications
You must be signed in to change notification settings - Fork 8
Add merging utilities #87
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Probably, in the future, we will need more tests but these is just a port from detekt
so no need to add them in this PR.
src/jvmTest/kotlin/io/github/detekt/sarif4k/SarifMergingTest.kt
Outdated
Show resolved
Hide resolved
src/jvmTest/kotlin/io/github/detekt/sarif4k/SarifMergingTest.kt
Outdated
Show resolved
Hide resolved
src/jvmTest/kotlin/io/github/detekt/sarif4k/SarifMergingTest.kt
Outdated
Show resolved
Hide resolved
Co-authored-by: Róbert Papp <papp.robert.s@gmail.com>
this should make it more reliable and ignore whitespace.
src/jvmTest/kotlin/io/github/detekt/sarif4k/SarifMergingTest.kt
Outdated
Show resolved
Hide resolved
It seems that multiplatform doesn't like |
Co-authored-by: Róbert Papp <papp.robert.s@gmail.com>
fun List<Run>.merge(other: List<Run>): List<Run> { | ||
val runsByTool = (this + other).groupBy { it.tool.driver.fullName } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Probably, in the future, we will need more tests but these is just a port from detekt so no need to add them in this PR.
@BraisGabin I think this is not just the port of the merger from Detekt, but also extra logic from detekt/detekt#6894, with an extra revision on top of it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but that part I think it have tests. So, to me we can merge and prepare a release. Do you know how to do that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes #82