Skip to content

Commit

Permalink
Merge pull request #413 from checkmarx-ltd/develop
Browse files Browse the repository at this point in the history
Added Similarity ID in new Line
  • Loading branch information
itsKedar authored Aug 1, 2024
2 parents 2b64183 + 6e4e37e commit 97a4bec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>com.github.checkmarx-ltd</groupId>
<artifactId>cx-spring-boot-sdk</artifactId>
<version>0.6.10</version>
<version>0.6.12</version>


<name>cx-spring-boot-sdk</name>
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/checkmarx/sdk/service/CxService.java
Original file line number Diff line number Diff line change
Expand Up @@ -1200,6 +1200,9 @@ private void prepareIssuesRemoveDuplicates(List<ScanResults.XIssue> cxIssueList,
} else if (existingIssue.getVulnerabilityStatus() != null) {
String existingIssueDescription = existingIssue.getDescription();
String newIssueDescription = issue.getDescription();
String existingSimilarityId = existingIssue.getSimilarityId();
String newSimilarityId = issue.getSimilarityId();
existingIssue.setSimilarityId(existingSimilarityId + ", " + newSimilarityId);
if (!existingIssueDescription.contains(newIssueDescription)) {
stringBuilder.append(existingIssueDescription).append("\r\n").append("\r\n").append(newIssueDescription);
cxIssueList.get(cxIssueList.indexOf(issue)).setDescription(stringBuilder.toString());
Expand Down

0 comments on commit 97a4bec

Please sign in to comment.