From f2dd2183a8b1bb62df037fe81d328c9382b4dd8e Mon Sep 17 00:00:00 2001 From: Lukasz Jarocki Date: Thu, 17 Mar 2022 13:41:53 +0100 Subject: SONAR-16128 SONAR-16126 Update Security PDF Report with OWASP Top 10 and CWE 2021 data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Belén Pruvost --- .../java/org/sonar/api/server/rule/RulesDefinition.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'sonar-plugin-api/src') 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"); -- cgit v1.2.3