From 6c5aad9a2d48cd783993a3a31911e307bf6827f5 Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Fri, 13 Apr 2018 15:59:23 +0200 Subject: SONAR-10543 Update test to v7.2 and remove descriptionUrl and ruleTitle from scanner --- plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/XooPlugin.java | 3 +-- .../main/java/org/sonar/xoo/rule/OneExternalIssuePerLineSensor.java | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/sonar-xoo-plugin') diff --git a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/XooPlugin.java b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/XooPlugin.java index 3c036b1d566..47a8c3be351 100644 --- a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/XooPlugin.java +++ b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/XooPlugin.java @@ -168,8 +168,7 @@ public class XooPlugin implements Plugin { if (context.getSonarQubeVersion().isGreaterThanOrEqual(Version.create(6, 6))) { context.addExtension(XooBuiltInQualityProfilesDefinition.class); } - // TODO change to v7.2 once version of SQ was updated - if (context.getSonarQubeVersion().isGreaterThanOrEqual(Version.create(7, 1))) { + if (context.getSonarQubeVersion().isGreaterThanOrEqual(Version.create(7, 2))) { context.addExtension(OneExternalIssuePerLineSensor.class); } } 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 e47ddd4ef60..7b872e26ee8 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 @@ -74,8 +74,6 @@ 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) -- cgit v1.2.3