diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2011-11-25 12:40:26 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2011-11-25 12:40:26 +0100 |
commit | 6b9f15216b84ee578ad05b293583cbf3a658bb0a (patch) | |
tree | e9f7a133ab0e5628b90bf827b629353c9ea2e4e8 | |
parent | ae3dc656a8ead89edb64eb9a93fed51b6404d39d (diff) | |
download | sonarqube-6b9f15216b84ee578ad05b293583cbf3a658bb0a.tar.gz sonarqube-6b9f15216b84ee578ad05b293583cbf3a658bb0a.zip |
Remove hardcoded path for MostViolatedRulesWidget
3 files changed, 6 insertions, 11 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/HotspotMostViolatedRulesWidget.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/HotspotMostViolatedRulesWidget.java index f8a8f7578a7..8177c8dd4bd 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/HotspotMostViolatedRulesWidget.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/HotspotMostViolatedRulesWidget.java @@ -19,14 +19,9 @@ */ package org.sonar.plugins.core.widgets; -import org.sonar.api.web.AbstractRubyTemplate; -import org.sonar.api.web.RubyRailsWidget; -import org.sonar.api.web.WidgetCategory; -import org.sonar.api.web.WidgetProperties; -import org.sonar.api.web.WidgetProperty; -import org.sonar.api.web.WidgetPropertyType; +import org.sonar.api.web.*; -@WidgetCategory({ "Hotspots" }) +@WidgetCategory({"Hotspots"}) @WidgetProperties( { @WidgetProperty(key = "numberOfLines", type = WidgetPropertyType.INTEGER, defaultValue = "5"), @@ -44,6 +39,6 @@ public class HotspotMostViolatedRulesWidget extends AbstractRubyTemplate impleme @Override protected String getTemplatePath() { - return "/Users/sbrandhof/projects/github/sonar/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspot_most_violated_rules.html.erb"; + return "/org/sonar/plugins/core/widgets/hotspot_most_violated_rules.html.erb"; } }
\ No newline at end of file diff --git a/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/purges/PurgeRuleMeasures.java b/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/purges/PurgeRuleMeasures.java index 112cab95d8e..790a4f96a37 100644 --- a/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/purges/PurgeRuleMeasures.java +++ b/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/purges/PurgeRuleMeasures.java @@ -31,7 +31,7 @@ import java.util.List; /** * see SONAR-522 - * + * * @since 1.11 */ public final class PurgeRuleMeasures extends Purge { diff --git a/sonar-deprecated/src/main/java/org/sonar/api/batch/Purge.java b/sonar-deprecated/src/main/java/org/sonar/api/batch/Purge.java index 803fbcdb98c..96f2ffa371a 100644 --- a/sonar-deprecated/src/main/java/org/sonar/api/batch/Purge.java +++ b/sonar-deprecated/src/main/java/org/sonar/api/batch/Purge.java @@ -26,7 +26,7 @@ import org.sonar.api.BatchExtension; * <p> * It is executed when the batch finishes. * </p> - * + * * @since 1.10 * @deprecated since 2.5. The DBCleaner plugin implements all required purge taks. */ @@ -35,7 +35,7 @@ public interface Purge extends BatchExtension { /** * Snapshots include the current snapshot (flagged as last) and optionally the penultimate one. - * + * * @snapshots never null. */ void purge(PurgeContext context); |