Skip to content

Commit

Permalink
fix(reporter): Fix-up determining the worst severity
Browse files Browse the repository at this point in the history
This is a fix-up for [1].

[1]: 405fd43

Signed-off-by: Frank Viernau <[email protected]>
  • Loading branch information
fviernau committed Apr 26, 2024
1 parent 0cec7d6 commit 456167b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ class StaticHtmlReporter : Reporter {

val issues = (row.analyzerIssues + row.scanIssues).flatMap { it.value }

val worstSeverity = issues.filterNot { it.isResolved }.minOfOrNull { it.severity } ?: Severity.ERROR
val worstSeverity = issues.filterNot { it.isResolved }.maxOfOrNull { it.severity } ?: Severity.ERROR

val areAllResolved = issues.isNotEmpty() && issues.all { it.isResolved }

Expand Down

0 comments on commit 456167b

Please sign in to comment.