.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)