Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
valeraz committed Jan 8, 2024
1 parent 80d23ca commit 55b8efd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/kotlin/slack/cli/sarif/SarifUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@ internal fun List<SarifSchema210>.merge(
// Using the default distinct() function leaves duplicates, so using a custom selector
.distinctBy {
it.ruleID +
it.message +
it.locations?.first()?.physicalLocation?.artifactLocation?.uri +
it.locations?.first()?.physicalLocation?.region?.startLine +
it.locations?.first()?.physicalLocation?.region?.startColumn +
it.locations?.first()?.physicalLocation?.region?.endColumn +
it.locations?.first()?.physicalLocation?.region?.endLine
it.message +
it.locations?.first()?.physicalLocation?.artifactLocation?.uri +
it.locations?.first()?.physicalLocation?.region?.startLine +
it.locations?.first()?.physicalLocation?.region?.startColumn +
it.locations?.first()?.physicalLocation?.region?.endColumn +
it.locations?.first()?.physicalLocation?.region?.endLine
}
.also { log("Merged ${it.size} results") }

Expand Down

0 comments on commit 55b8efd

Please sign in to comment.