Skip to content

Commit

Permalink
refactor(model): Simplify resolving rule violations
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Viernau <[email protected]>
  • Loading branch information
fviernau committed Apr 9, 2024
1 parent 40d9596 commit 0eaad59
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions model/src/main/kotlin/OrtResult.kt
Original file line number Diff line number Diff line change
Expand Up @@ -445,13 +445,7 @@ data class OrtResult(
}

return if (omitResolved) {
val resolutions = getResolutions().ruleViolations

severeViolations.filter { violation ->
resolutions.none { resolution ->
resolution.matches(violation)
}
}
severeViolations.filter { isResolved(it) }
} else {
severeViolations
}
Expand Down

0 comments on commit 0eaad59

Please sign in to comment.