aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src
diff options
context:
space:
mode:
authorLukasz Jarocki <lukasz.jarocki@sonarsource.com>2022-03-17 13:41:53 +0100
committersonartech <sonartech@sonarsource.com>2022-03-17 20:03:09 +0000
commitf2dd2183a8b1bb62df037fe81d328c9382b4dd8e (patch)
tree5ff7d8db4af7e1afe894664c789ab917593a84d1 /sonar-plugin-api/src
parent9101c69bb7feacb3613c52c796268cea69e2dda5 (diff)
downloadsonarqube-f2dd2183a8b1bb62df037fe81d328c9382b4dd8e.tar.gz
sonarqube-f2dd2183a8b1bb62df037fe81d328c9382b4dd8e.zip
SONAR-16128 SONAR-16126 Update Security PDF Report with OWASP Top 10 and CWE 2021 data
Co-authored-by: Belén Pruvost <belen.pruvost@sonarsource.com>
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RulesDefinition.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RulesDefinition.java b/sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RulesDefinition.java
index 478e0cd158c..0e9267ce7b8 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RulesDefinition.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RulesDefinition.java
@@ -235,6 +235,20 @@ public interface RulesDefinition {
boolean isExternal();
}
+ enum CweVersion {
+ Y2020("2020"), Y2021("2021");
+
+ private final String label;
+
+ CweVersion(String label) {
+ this.label = label;
+ }
+
+ public String label() {
+ return label;
+ }
+ }
+
enum OwaspTop10Version {
Y2017("2017"), Y2021("2021");