diff options
Diffstat (limited to 'sonar-batch-protocol/src/main/java')
-rw-r--r-- | sonar-batch-protocol/src/main/java/org/sonar/batch/protocol/input/ActiveRule.java | 9 |
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; } |