diff options
author | Matteo Mara <matteo.mara@sonarsource.com> | 2022-07-25 00:23:48 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-07-25 20:03:58 +0000 |
commit | 62844f42b08de09ed9a27208b8fdbf7814e7b0be (patch) | |
tree | d6e9ed40372b343ac1830a309b3cf05ff08882cc /plugins | |
parent | 20cc332ffff7701ca9a4ac73186fa2adb62bee72 (diff) | |
download | sonarqube-62844f42b08de09ed9a27208b8fdbf7814e7b0be.tar.gz sonarqube-62844f42b08de09ed9a27208b8fdbf7814e7b0be.zip |
SONAR-17061 add support for PCI DSS requirements name with paragraph letters
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java index 3d87a2cbb16..8da47aa22f5 100644 --- a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java +++ b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java @@ -48,7 +48,7 @@ import static org.sonar.api.server.rule.RulesDefinition.OwaspTop10Version.Y2021; */ public class XooRulesDefinition implements RulesDefinition { - public static final String[] AVAILABLE_CONTEXTS = { "JavaScript", "JQuery", "Express.js", "React", "Axios" }; + public static final String[] AVAILABLE_CONTEXTS = {"JavaScript", "JQuery", "Express.js", "React", "Axios"}; public static final String XOO_REPOSITORY = "xoo"; public static final String XOO2_REPOSITORY = "xoo2"; @@ -240,11 +240,15 @@ public class XooRulesDefinition implements RulesDefinition { if (version != null && version.isGreaterThanOrEqual(Version.create(9, 5))) { hotspot .addPciDss(PciDssVersion.V4_0, "6.5.1", "4.1") - .addPciDss(PciDssVersion.V3_2, "6.5.1", "4.2"); + .addPciDss(PciDssVersion.V3_2, "6.5.1", "4.2") + .addPciDss(PciDssVersion.V4_0, "6.5a.1", "4.2c") + .addPciDss(PciDssVersion.V3_2, "6.5a.1b", "4.2b"); oneVulnerabilityIssuePerModule .addPciDss(PciDssVersion.V4_0, "10.1") - .addPciDss(PciDssVersion.V3_2, "10.2"); + .addPciDss(PciDssVersion.V3_2, "10.2") + .addPciDss(PciDssVersion.V4_0, "10.1a.2b") + .addPciDss(PciDssVersion.V3_2, "10.1a.2c"); } NewRule hotspotWithContexts = repo.createRule(HotspotWithContextsSensor.RULE_KEY) |