aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch-protocol/src/main/java
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-07-23 20:55:46 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2014-07-23 20:56:27 +0200
commite4fdef49e36d269ef5365a3056af67c8c3d5aceb (patch)
treedcec45821e3d24e946eb13c1f80f8bebcf17804f /sonar-batch-protocol/src/main/java
parent0a123014a0781a516b580d4fa9ce76532f23071f (diff)
downloadsonarqube-e4fdef49e36d269ef5365a3056af67c8c3d5aceb.tar.gz
sonarqube-e4fdef49e36d269ef5365a3056af67c8c3d5aceb.zip
SONAR-5417 Add rule name to active rule
Diffstat (limited to 'sonar-batch-protocol/src/main/java')
-rw-r--r--sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ActiveRule.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ActiveRule.java b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ActiveRule.java
index 144a34b292b..6c1992ac1e2 100644
--- a/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ActiveRule.java
+++ b/sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ActiveRule.java
@@ -26,12 +26,13 @@ import java.util.Map;
public class ActiveRule {
private final String repositoryKey, ruleKey;
- private final String severity, internalKey, language;
+ private final String name, severity, internalKey, language;
private final Map<String, String> params = new HashMap<String, String>();
- public ActiveRule(String repositoryKey, String ruleKey, String severity, String internalKey, String language) {
+ public ActiveRule(String repositoryKey, String ruleKey, String name, String severity, String internalKey, String language) {
this.repositoryKey = repositoryKey;
this.ruleKey = ruleKey;
+ this.name = name;
this.severity = severity;
this.internalKey = internalKey;
this.language = language;
@@ -45,6 +46,10 @@ public class ActiveRule {
return ruleKey;
}
+ public String name() {
+ return name;
+ }
+
public String severity() {
return severity;
}