public class ReportTool
extends java.lang.Object
Constructor and Description |
---|
ReportTool() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<SarifRule> |
convertToSarifRules(java.util.List<Dependency> dependencies)
Creates a list of SARIF rules for the SARIF report.
|
java.lang.Double |
estimateSeverity(java.lang.String severity)
Estimates the CVSS V2 score for the given severity.
|
java.lang.String |
identifierToSuppressionId(Identifier id)
Converts an identifier into the Suppression string when possible.
|
java.lang.String |
normalizeSeverity(java.lang.String sev) |
public java.lang.String identifierToSuppressionId(Identifier id)
id
- the Identifier to formatnull
.public java.lang.Double estimateSeverity(java.lang.String severity)
severity
- the text representation of a scorepublic java.util.Collection<SarifRule> convertToSarifRules(java.util.List<Dependency> dependencies)
dependencies
- the list of dependencies to extract rules frompublic java.lang.String normalizeSeverity(java.lang.String sev)
Copyright© 2012-21 Jeremy Long. All Rights Reserved.