You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: backend/src/main/java/io/mixeway/mixewayflowapi/integrations/ollama/service/FalsePositivePromptBuilder.java
sb.append("3) If the rule fires on a safe API, dead code, unreachable branch, or fully mitigated usage, treat as FALSE POSITIVE.\n\n");
32
+
sb.append("3) **Prefer REAL_ISSUE when in doubt** — do not classify as FALSE_POSITIVE unless you can justify it clearly.\n");
33
+
sb.append("4) Use FALSE_POSITIVE only when the finding is clearly a **rule misfire**, dead/unreachable code, or safe-by-construction usage; ");
34
+
sb.append("not merely \"low severity\".\n");
35
+
sb.append("5) Set **confidence** to **HIGH** only if you are **very sure** the finding is not a real security issue; ");
36
+
sb.append("if you lean toward false positive but are not fully sure, use **REAL_ISSUE** or **FALSE_POSITIVE** with **MEDIUM**/**LOW** (the pipeline treats SAST auto-suppression only for HIGH).\n\n");
33
37
sb.append("Write **reasoning** as **at least 5–8 sentences**, concrete and code-referenced.\n\n");
0 commit comments