aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-11-25 12:40:26 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2011-11-25 12:40:26 +0100
commit6b9f15216b84ee578ad05b293583cbf3a658bb0a (patch)
treee9f7a133ab0e5628b90bf827b629353c9ea2e4e8 /plugins
parentae3dc656a8ead89edb64eb9a93fed51b6404d39d (diff)
downloadsonarqube-6b9f15216b84ee578ad05b293583cbf3a658bb0a.tar.gz
sonarqube-6b9f15216b84ee578ad05b293583cbf3a658bb0a.zip
Remove hardcoded path for MostViolatedRulesWidget
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/HotspotMostViolatedRulesWidget.java11
-rw-r--r--plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/purges/PurgeRuleMeasures.java2
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 {