Class ReportTool
java.lang.Object
org.owasp.dependencycheck.reporting.ReportTool
Utilities to format items in the Velocity reports.
- Author:
- Jeremy Long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToSarifRules(List<Dependency> dependencies) Creates a list of SARIF rules for the SARIF report.estimateSeverity(String severity) Estimates the CVSS V2 score for the given severity.Converts an identifier into the Suppression string when possible.normalizeSeverity(Object sev) Map severity names from various sources to a standard set of severity names.normalizeSeverity(String sev) Map severity names from various sources to a standard set of severity names.
-
Constructor Details
-
ReportTool
public ReportTool()
-
-
Method Details
-
identifierToSuppressionId
Converts an identifier into the Suppression string when possible.- Parameters:
id- the Identifier to format- Returns:
- the formatted suppression string when possible; otherwise
null.
-
estimateSeverity
-
convertToSarifRules
Creates a list of SARIF rules for the SARIF report.- Parameters:
dependencies- the list of dependencies to extract rules from- Returns:
- the list of SARIF rules
-
normalizeSeverity
-
normalizeSeverity
-