diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2022-07-19 12:10:01 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-07-19 20:03:21 +0000 |
commit | 26f5c3f9730649345a5066a6823e9473e7ecc3d8 (patch) | |
tree | 557a0a1f006455e38da122a0eba5aab628b5ffa0 /plugins/sonar-xoo-plugin/src | |
parent | 19e81c42496a55c85343d4692bb2daf559cb7882 (diff) | |
download | sonarqube-26f5c3f9730649345a5066a6823e9473e7ecc3d8.tar.gz sonarqube-26f5c3f9730649345a5066a6823e9473e7ecc3d8.zip |
SONAR-17067 Update SonarXoo to support some PCI DSS rules
Diffstat (limited to 'plugins/sonar-xoo-plugin/src')
-rw-r--r-- | plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java | 10 |
1 files changed, 10 insertions, 0 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 24547887632..3d87a2cbb16 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 @@ -237,6 +237,16 @@ public class XooRulesDefinition implements RulesDefinition { .addCwe(250, 564, 546, 943); } + 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"); + + oneVulnerabilityIssuePerModule + .addPciDss(PciDssVersion.V4_0, "10.1") + .addPciDss(PciDssVersion.V3_2, "10.2"); + } + NewRule hotspotWithContexts = repo.createRule(HotspotWithContextsSensor.RULE_KEY) .setName("Find security hotspots with contexts") .setType(RuleType.SECURITY_HOTSPOT) |