Interface IStaticCodeAnalysisIssue
- All Known Implementing Classes:
SnykIssue
public interface IStaticCodeAnalysisIssue
-
Method Summary
Modifier and TypeMethodDescriptionfloat
Returns a Common Vulnerability Scoring System (CVSS) score to measure the issue.Returns the Common Vulnerability Scoring System (CVSS).Returns a detailed description of the issue.Return the date when the issue was disclosed to the package maintainers.long
getId()
Returns the issue's id as a String.Returns a map of common categorization identifiers for example CWE.Returns the programming language the package that got the issue is written in.Returns the package identifier for the package that got the issue.Returns the package version of the package that got the issue.String[]
getPaths()
Returns an array of String that represent paths to the dependencies that got an issue.Returns the date when the issue was first published.Returns the level of severity of the issue.getTitle()
Returns the issue's name.getUrl()
Get a URL where one may get further information about the issue.
-
Method Details
-
getId
long getId()Returns the issue's id as a String. The id is used to identify the issue for further use.- Returns:
- String representing the issue's id.
-
getUrl
String getUrl()Get a URL where one may get further information about the issue.- Returns:
- Issue's information URL.
-
getTitle
String getTitle()Returns the issue's name. Use it for a human-readable communication.- Returns:
- Issue's name.
-
getPaths
String[] getPaths()Returns an array of String that represent paths to the dependencies that got an issue.- Returns:
- Paths to the Dependencies
-
getPackage
String getPackage()Returns the package identifier for the package that got the issue. The identifier received form the package manager,- Returns:
- Package identifier.
-
getPackageVersion
String getPackageVersion()Returns the package version of the package that got the issue.- Returns:
- Package version.
-
getSeverity
String getSeverity()Returns the level of severity of the issue.- Returns:
- Severity.
-
getLanguage
String getLanguage()Returns the programming language the package that got the issue is written in.- Returns:
- Package's programming language.
-
getPublicationTime
Date getPublicationTime()Returns the date when the issue was first published.- Returns:
- Issue's publish data
-
getDisclosureTime
Date getDisclosureTime()Return the date when the issue was disclosed to the package maintainers.- Returns:
- Issue's disclosure time,
-
getDescription
String getDescription()Returns a detailed description of the issue.- Returns:
- Issue description.
-
getIdentifiers
Returns a map of common categorization identifiers for example CWE. The maps keys are the categorization providers. The values are the identifiers.- Returns:
- Issue's categorization identifiers,
-
getCVSSv3
String getCVSSv3()Returns the Common Vulnerability Scoring System (CVSS).- Returns:
- Issue's CVSS
-
getCVSSScore
float getCVSSScore()Returns a Common Vulnerability Scoring System (CVSS) score to measure the issue.- Returns:
- Issue's CVSS score
-