Search in sources :

Example 6 with Finding

use of com.checkmarx.sdk.dto.ast.report.Finding in project checkmarx-spring-boot-java-sdk by checkmarx-ltd.

the class AstClientHelper method retrieveScanResults.

private ASTResults retrieveScanResults() {
    try {
        ASTResults result = new ASTResults();
        result.setScanId(scanId);
        AstSummaryResults scanSummary = getSummary();
        result.setSummary(scanSummary);
        List<Finding> findings = getFindings();
        result.setFindings(findings);
        String projectLink = getWebReportLink(config.getAstConfig().getWebAppUrl());
        result.setWebReportLink(projectLink);
        return result;
    } catch (IOException e) {
        String message = String.format("Error getting %s scan results.", getScannerDisplayName());
        throw new ScannerRuntimeException(message, e);
    }
}
Also used : Finding(com.checkmarx.sdk.dto.ast.report.Finding) IOException(java.io.IOException) ScannerRuntimeException(com.checkmarx.sdk.exception.ScannerRuntimeException)

Aggregations

Finding (com.checkmarx.sdk.dto.ast.report.Finding)6 AstSummaryResults (com.checkmarx.sdk.dto.ast.report.AstSummaryResults)3 ASTResults (com.checkmarx.sdk.dto.ast.ASTResults)2 StatusCounter (com.checkmarx.sdk.dto.ast.report.StatusCounter)2 GithubProperties (com.checkmarx.sdk.GithubProperties)1 AstConfig (com.checkmarx.sdk.config.AstConfig)1 AstProperties (com.checkmarx.sdk.config.AstProperties)1 CxProperties (com.checkmarx.sdk.config.CxProperties)1 RestClientConfig (com.checkmarx.sdk.config.RestClientConfig)1 SpringConfiguration (com.checkmarx.sdk.config.SpringConfiguration)1 AstScaResults (com.checkmarx.sdk.dto.AstScaResults)1 RemoteRepositoryInfo (com.checkmarx.sdk.dto.RemoteRepositoryInfo)1 ScanResults (com.checkmarx.sdk.dto.ScanResults)1 SourceLocationType (com.checkmarx.sdk.dto.SourceLocationType)1 ScanParams (com.checkmarx.sdk.dto.ast.ScanParams)1 FindingNode (com.checkmarx.sdk.dto.ast.report.FindingNode)1 CxScanSummary (com.checkmarx.sdk.dto.cx.CxScanSummary)1 FilterConfiguration (com.checkmarx.sdk.dto.filtering.FilterConfiguration)1 ScannerRuntimeException (com.checkmarx.sdk.exception.ScannerRuntimeException)1 CommonClientTest (com.checkmarx.sdk.service.CommonClientTest)1