Skip to content

Commit b0458f8

Browse files
- commented Ignore all of this type and Ignore this type actions as currently we have implemented only fix prompt and view details
1 parent 4528d6c commit b0458f8

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

src/main/java/com/checkmarx/intellij/devassist/problems/ProblemBuilder.java

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
package com.checkmarx.intellij.devassist.problems;
22

3+
import com.checkmarx.intellij.devassist.model.ScanIssue;
34
import com.checkmarx.intellij.devassist.remediation.CxOneAssistFix;
4-
import com.checkmarx.intellij.devassist.remediation.IgnoreAllThisTypeFix;
5-
import com.checkmarx.intellij.devassist.remediation.IgnoreVulnerabilityFix;
65
import com.checkmarx.intellij.devassist.remediation.ViewDetailsFix;
7-
import com.checkmarx.intellij.devassist.model.ScanIssue;
86
import com.checkmarx.intellij.devassist.ui.ProblemDescription;
97
import com.checkmarx.intellij.devassist.utils.DevAssistUtils;
108
import com.checkmarx.intellij.util.SeverityLevel;
@@ -43,7 +41,8 @@ public class ProblemBuilder {
4341
/**
4442
* Private constructor to prevent instantiation.
4543
*/
46-
private ProblemBuilder() {}
44+
private ProblemBuilder() {
45+
}
4746

4847
/**
4948
* Initializes the mapping from severity levels to problem highlight types.
@@ -59,12 +58,12 @@ private static void initSeverityToHighlightMap() {
5958
/**
6059
* Builds a ProblemDescriptor for the given scan issue.
6160
*
62-
* @param file the PsiFile being inspected
63-
* @param manager the InspectionManager
64-
* @param scanIssue the scan issue
65-
* @param document the document
61+
* @param file the PsiFile being inspected
62+
* @param manager the InspectionManager
63+
* @param scanIssue the scan issue
64+
* @param document the document
6665
* @param problemLineNumber the line number where the problem was found
67-
* @param isOnTheFly whether the inspection is on-the-fly
66+
* @param isOnTheFly whether the inspection is on-the-fly
6867
* @return a ProblemDescriptor instance
6968
*/
7069
static ProblemDescriptor build(@NotNull PsiFile file, @NotNull InspectionManager manager,
@@ -82,9 +81,9 @@ static ProblemDescriptor build(@NotNull PsiFile file, @NotNull InspectionManager
8281
highlightType,
8382
isOnTheFly,
8483
new CxOneAssistFix(scanIssue),
85-
new ViewDetailsFix(scanIssue),
86-
new IgnoreVulnerabilityFix(scanIssue),
87-
new IgnoreAllThisTypeFix(scanIssue)
84+
new ViewDetailsFix(scanIssue)
85+
/*new IgnoreVulnerabilityFix(scanIssue),
86+
new IgnoreAllThisTypeFix(scanIssue)*/
8887
);
8988
}
9089

0 commit comments

Comments
 (0)