aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server-common
diff options
context:
space:
mode:
authorJacek <jacek.poreda@sonarsource.com>2021-02-08 13:29:27 +0100
committersonartech <sonartech@sonarsource.com>2021-02-17 20:07:15 +0000
commiteea84c91e825821cf85d1fb32c0056fb74c1594b (patch)
tree48f3907670f36d5b4d32116be5bcd87e7f902489 /server/sonar-server-common
parentaee919a2c4faecf025e8daa506eb4d4adddcd195 (diff)
downloadsonarqube-eea84c91e825821cf85d1fb32c0056fb74c1594b.tar.gz
sonarqube-eea84c91e825821cf85d1fb32c0056fb74c1594b.zip
SONAR-14443 Deprecate 'sansTop25' param in WS
Diffstat (limited to 'server/sonar-server-common')
-rw-r--r--server/sonar-server-common/src/main/java/org/sonar/server/security/SecurityStandards.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/server/sonar-server-common/src/main/java/org/sonar/server/security/SecurityStandards.java b/server/sonar-server-common/src/main/java/org/sonar/server/security/SecurityStandards.java
index b0709224372..dfa8ad11a96 100644
--- a/server/sonar-server-common/src/main/java/org/sonar/server/security/SecurityStandards.java
+++ b/server/sonar-server-common/src/main/java/org/sonar/server/security/SecurityStandards.java
@@ -59,6 +59,11 @@ public final class SecurityStandards {
private static final Set<String> INSECURE_CWE = new HashSet<>(asList("89", "78", "79", "434", "352", "601"));
private static final Set<String> RISKY_CWE = new HashSet<>(asList("120", "22", "494", "829", "676", "131", "134", "190"));
private static final Set<String> POROUS_CWE = new HashSet<>(asList("306", "862", "798", "311", "807", "250", "863", "732", "327", "307", "759"));
+
+ /**
+ * @deprecated SansTop25 report is outdated and will be removed in future versions
+ */
+ @Deprecated
public static final Map<String, Set<String>> CWES_BY_SANS_TOP_25 = ImmutableMap.of(
SANS_TOP_25_INSECURE_INTERACTION, INSECURE_CWE,
SANS_TOP_25_RISKY_RESOURCE, RISKY_CWE,
@@ -199,6 +204,10 @@ public final class SecurityStandards {
return toOwaspTop10(standards);
}
+ /**
+ * @deprecated SansTop25 report is outdated and will be removed in future versions
+ */
+ @Deprecated
public Set<String> getSansTop25() {
return toSansTop25(cwe);
}