diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2018-04-10 15:41:07 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-04-26 20:20:50 +0200 |
commit | 29c541dc4886e8f5b1023401caf4144847b20a7b (patch) | |
tree | cf02f337890190dc6815b163524277bf077800cc /plugins | |
parent | a4f510d4548b71357412fcd0b6cac70ca1ec4277 (diff) | |
download | sonarqube-29c541dc4886e8f5b1023401caf4144847b20a7b.tar.gz sonarqube-29c541dc4886e8f5b1023401caf4144847b20a7b.zip |
SONAR-10543 Fix mandatory fields
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/OneExternalIssuePerLineSensor.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/OneExternalIssuePerLineSensor.java b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/OneExternalIssuePerLineSensor.java index 4dbf744243b..e47ddd4ef60 100644 --- a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/OneExternalIssuePerLineSensor.java +++ b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/rule/OneExternalIssuePerLineSensor.java @@ -40,11 +40,12 @@ public class OneExternalIssuePerLineSensor implements Sensor { public static final Long EFFORT = 10l; public static final RuleType type = RuleType.BUG; public static final String ACTIVATE_EXTERNAL_ISSUES = "sonar.oneExternalIssuePerLine.activate"; + private static final String NAME = "One External Issue Per Line"; @Override public void describe(SensorDescriptor descriptor) { descriptor - .name("One External Issue Per Line") + .name(NAME) .onlyOnLanguages(Xoo.KEY, Xoo2.KEY) .onlyWhenConfiguration(c -> c.getBoolean(ACTIVATE_EXTERNAL_ISSUES).orElse(false)); } @@ -73,6 +74,8 @@ public class OneExternalIssuePerLineSensor implements Sensor { .on(file) .at(file.selectLine(line)) .message("This issue is generated on each line")) + .ruleTitle(NAME) + .descriptionUrl("http://oneexternalissueperline.xoo.net") .severity(Severity.valueOf(SEVERITY)) .remediationEffort(EFFORT) .type(type) |