diff options
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RulesDefinition.java | 14 |
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"); |