aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2018-02-09 16:36:23 +0100
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2018-02-09 16:36:23 +0100
commit916f7021154eae9c7c88f0f219884d972573209c (patch)
tree521298ebafdd7db56d34ab908ea7f3b2822c10f0 /sonar-plugin-api
parent8f8e96192f36aa13496ebfe7bbaf333de8a92e35 (diff)
parent72f64c95fdef18ec950d341c1a9093f30087e1c1 (diff)
downloadsonarqube-916f7021154eae9c7c88f0f219884d972573209c.tar.gz
sonarqube-916f7021154eae9c7c88f0f219884d972573209c.zip
Merge branch 'branch-6.7'
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/rules/Rule.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/rules/Rule.java b/sonar-plugin-api/src/main/java/org/sonar/api/rules/Rule.java
index 467b7429299..7612949f7e3 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/rules/Rule.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/rules/Rule.java
@@ -400,6 +400,11 @@ public class Rule {
return systemTags == null ? new String[0] : StringUtils.split(systemTags, ',');
}
+ public Rule setSystemTags(String[] tags) {
+ this.systemTags = tags == null ? null : StringUtils.join(tags, ',');
+ return this;
+ }
+
/**
* For internal use only.
*