diff --git a/plugins/reporters/static-html/src/funTest/assets/static-html-reporter-test-expected-output.html b/plugins/reporters/static-html/src/funTest/assets/static-html-reporter-test-expected-output.html index c294869c8a9bb..8d6f31a4f70df 100644 --- a/plugins/reporters/static-html/src/funTest/assets/static-html-reporter-test-expected-output.html +++ b/plugins/reporters/static-html/src/funTest/assets/static-html-reporter-test-expected-output.html @@ -1186,15 +1186,40 @@

Packages

+ + + + + + + + + +
+

Unknown time [ERROR]: VulnerableCode - Example advisor error.

+

2024-04-25T07:44:20.725613974Z [WARNING]: Gradle - Example analyzer warning in included package.

+

Unknown time [WARNING]: VulnerableCode - Example advisor warning.

+
+

Unknown time [HINT]: VulnerableCode - Example advisor hint.

+
+ + + + + +
+

Unknown time [ERROR]: VulnerableCode - Example advisor error, resolved.

+

+ Resolved by: CANT_FIX_ISSUE - A comment explaining why the issue can be ignored.

+
- 7 diff --git a/plugins/reporters/static-html/src/main/kotlin/TablesReportModelMapper.kt b/plugins/reporters/static-html/src/main/kotlin/TablesReportModelMapper.kt index 24580e36dee1d..36fa789efee17 100644 --- a/plugins/reporters/static-html/src/main/kotlin/TablesReportModelMapper.kt +++ b/plugins/reporters/static-html/src/main/kotlin/TablesReportModelMapper.kt @@ -127,6 +127,7 @@ private fun RuleViolation.toTableReportViolation(ortResult: OrtResult): TablesRe private fun getProjectTable(input: ReporterInput, project: Project): ProjectTable { val projectIssuesForId = input.ortResult.dependencyNavigator.projectIssues(project) val scannerIssuesForId = input.ortResult.getScannerIssues() + val advisorIssuesForId = input.ortResult.getAdvisorIssues() val scopesForId = input.ortResult.getScopesForDependencies(project) val ids = input.ortResult.dependencyNavigator.projectDependencies(project) + project.id @@ -149,6 +150,7 @@ private fun getProjectTable(input: ReporterInput, project: Project): ProjectTabl addAll(projectIssuesForId[id].orEmpty()) addAll(input.ortResult.analyzer?.result?.issues?.get(id).orEmpty()) addAll(scannerIssuesForId[id].orEmpty()) + addAll(advisorIssuesForId[id].orEmpty()) }.map { issue -> val isRowExcluded = input.ortResult.isExcluded(id) || (id != project.id && scopesForId[id].orEmpty().all { it.value.isNotEmpty() })