From 82bf7313722a2f8c354cb5b21da9942810a3a55a Mon Sep 17 00:00:00 2001 From: Eyal Kapon Date: Thu, 12 Sep 2024 14:58:56 +0300 Subject: [PATCH] taking the reason as the title instead of the id --- .../java/com/jfrog/ide/idea/scan/SastScannerExecutor.java | 4 ++-- .../com/jfrog/ide/idea/ui/webview/WebviewObjectConverter.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/jfrog/ide/idea/scan/SastScannerExecutor.java b/src/main/java/com/jfrog/ide/idea/scan/SastScannerExecutor.java index 31e247af..70dfe22b 100644 --- a/src/main/java/com/jfrog/ide/idea/scan/SastScannerExecutor.java +++ b/src/main/java/com/jfrog/ide/idea/scan/SastScannerExecutor.java @@ -46,9 +46,9 @@ List createSpecificFileIssueNodes(List warni results.put(warning.getFilePath(), fileNode); } - FileIssueNode issueNode = new SastIssueNode(warning.getRuleID(), + FileIssueNode issueNode = new SastIssueNode(warning.getReason(), warning.getFilePath(), warning.getLineStart(), warning.getColStart(), warning.getLineEnd(), warning.getColEnd(), - warning.getScannerSearchTarget(), warning.getLineSnippet(), warning.getCodeFlows(), warning.getSeverity(), warning.getRuleID()); + warning.getReason(), warning.getLineSnippet(), warning.getCodeFlows(), warning.getSeverity(), warning.getRuleID()); fileNode.addIssue(issueNode); } return new ArrayList<>(results.values()); diff --git a/src/main/java/com/jfrog/ide/idea/ui/webview/WebviewObjectConverter.java b/src/main/java/com/jfrog/ide/idea/ui/webview/WebviewObjectConverter.java index 3b7e96a4..7c01cfff 100644 --- a/src/main/java/com/jfrog/ide/idea/ui/webview/WebviewObjectConverter.java +++ b/src/main/java/com/jfrog/ide/idea/ui/webview/WebviewObjectConverter.java @@ -52,10 +52,10 @@ public static DependencyPage convertIssueToDepPage(VulnerabilityNode vulnerabili public static IssuePage convertFileIssueToIssuePage(FileIssueNode fileIssueNodeNode) { return new IssuePage() + .header(fileIssueNodeNode.getReason()) .type(ConvertPageType(fileIssueNodeNode.getReporterType())) .severity(fileIssueNodeNode.getSeverity().name()) .description(fileIssueNodeNode.getReason()) - .header(fileIssueNodeNode.getTitle()) .location(convertFileLocation(fileIssueNodeNode)); }