use of com.checkmarx.sdk.dto.filtering.FilterConfiguration in project cx-flow by checkmarx-ltd.
the class JiraAnalyticsCommandLineCommonSteps method getBasicScanRequest.
ScanRequest getBasicScanRequest() {
List<Filter> simpleFilters = Collections.singletonList(this.filter);
FilterConfiguration filterConfiguration = FilterConfiguration.fromSimpleFilters(simpleFilters);
return ScanRequest.builder().application("TestApp").product(ScanRequest.Product.CX).project("TestProject").team("CxServer").namespace("Test").repoName("TestRepo").repoUrl("http://localhost/repo.git").repoUrlWithAuth("http://localhost/repo.git").repoType(ScanRequest.Repository.GITHUB).bugTracker(bugTracker).branch("master").refs(Constants.CX_BRANCH_PREFIX.concat("master")).email(null).incremental(false).scanPreset("Checkmarx Default").filter(filterConfiguration).build();
}
Aggregations