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 /plugins | |
parent | ae3dc656a8ead89edb64eb9a93fed51b6404d39d (diff) | |
download | sonarqube-6b9f15216b84ee578ad05b293583cbf3a658bb0a.tar.gz sonarqube-6b9f15216b84ee578ad05b293583cbf3a658bb0a.zip |
Remove hardcoded path for MostViolatedRulesWidget
Diffstat (limited to 'plugins')
2 files changed, 4 insertions, 9 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 { |