aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2019-05-01 16:59:45 +0200
committersonartech <sonartech@sonarsource.com>2019-05-07 09:54:30 +0200
commit0e66ef03f6d1a86fa12f7b9574f6e9f9b36aa3a2 (patch)
treeebd5f67aa80c2427e693ed1078a441cedb114ef5 /plugins
parent78ac82da528beca83055beba26e9d96aec79d80e (diff)
downloadsonarqube-0e66ef03f6d1a86fa12f7b9574f6e9f9b36aa3a2.tar.gz
sonarqube-0e66ef03f6d1a86fa12f7b9574f6e9f9b36aa3a2.zip
SONAR-11973 Update Xoo plugin for new sonarsourceSecurity facet testing
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/XooRulesDefinition.java2
-rw-r--r--plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java2
2 files changed, 2 insertions, 2 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 2e187481989..489623c5052 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
@@ -175,7 +175,7 @@ public class XooRulesDefinition implements RulesDefinition {
if (version != null && version.isGreaterThanOrEqual(Version.create(7, 3))) {
hotspot
.addOwaspTop10(OwaspTop10.A1, OwaspTop10.A3)
- .addCwe(1, 123, 863);
+ .addCwe(1, 89, 123, 863);
}
repo.done();
diff --git a/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java b/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java
index 9ae65aed3a2..c1e3bca6dc0 100644
--- a/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java
+++ b/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/XooRulesDefinitionTest.java
@@ -68,7 +68,7 @@ public class XooRulesDefinitionTest {
assertThat(rule.name()).isNotEmpty();
assertThat(rule.securityStandards())
.isNotEmpty()
- .containsExactlyInAnyOrder("cwe:1", "cwe:123", "cwe:863", "owaspTop10:a1", "owaspTop10:a3");
+ .containsExactlyInAnyOrder("cwe:1", "cwe:89", "cwe:123", "cwe:863", "owaspTop10:a1", "owaspTop10:a3");
}
@Test