]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-17399 Integration test for OWASP ASVS level selector
authorRevanshu Paliwal <revanshu.paliwal@sonarsource.com>
Fri, 7 Oct 2022 08:29:29 +0000 (10:29 +0200)
committersonartech <sonartech@sonarsource.com>
Mon, 10 Oct 2022 20:03:09 +0000 (20:03 +0000)
plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java

index c15d84a32e88d5d71ee7caeecad00dc0795d1ca3..aba3b4ccccaca37ab862f86a9ff27efd9befbbe5 100644 (file)
@@ -253,9 +253,9 @@ public class XooRulesDefinition implements RulesDefinition {
 
     if (version != null && version.isGreaterThanOrEqual(Version.create(9, 6))) {
       hotspot
-        .addOwaspAsvs(OwaspAsvsVersion.V4_0, "3.1.1", "4.2.2");
+        .addOwaspAsvs(OwaspAsvsVersion.V4_0, "2.8.7", "3.1.1", "4.2.2");
       oneVulnerabilityIssuePerModule
-        .addOwaspAsvs(OwaspAsvsVersion.V4_0, "11.1.2", "14.5.1");
+        .addOwaspAsvs(OwaspAsvsVersion.V4_0, "11.1.2", "14.5.1", "14.5.4");
     }
 
     NewRule hotspotWithContexts = repo.createRule(HotspotWithContextsSensor.RULE_KEY)