Skip to content

Commit

Permalink
fix(model): Fix-up filtering excluded issues
Browse files Browse the repository at this point in the history
This fixes the logic introduced by 6a84fa2.

Signed-off-by: Frank Viernau <[email protected]>
  • Loading branch information
fviernau committed May 16, 2024
1 parent 62f008b commit b051095
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion model/src/main/kotlin/OrtResult.kt
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ data class OrtResult(
val filteredIssues = issues.filterTo(mutableSetOf()) {
(!omitResolved || !isResolved(it))
&& it.severity >= minSeverity
&& it !in issuesWithExcludedAffectedPathById[id].orEmpty()
&& (!omitExcluded || it !in issuesWithExcludedAffectedPathById[id].orEmpty())
}

filteredIssues.takeUnless { it.isEmpty() }?.let { id to it }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,12 @@ <h3>Packages</h3>
Resolved by: CANT_FIX_ISSUE - Resolved for illustration.</p>
</td>
</tr>
<tr class="excluded">
<td>
<p>2024-04-22T10:36:10.661544294Z [ERROR]: FakeScanner - ERROR: Timeout after 300 seconds
while scanning file 'analyzer/src/funTest/assets/projects/synthetic/gradle/lib/excluded-file.dat'.</p>
</td>
</tr>
</table>
</td>
</tr>
Expand Down

0 comments on commit b051095

Please sign in to comment.