]> source.dussan.org Git - sonarqube.git/commitdiff
Remove hardcoded path for MostViolatedRulesWidget
authorSimon Brandhof <simon.brandhof@gmail.com>
Fri, 25 Nov 2011 11:40:26 +0000 (12:40 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Fri, 25 Nov 2011 11:40:26 +0000 (12:40 +0100)
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/HotspotMostViolatedRulesWidget.java
plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/purges/PurgeRuleMeasures.java
sonar-deprecated/src/main/java/org/sonar/api/batch/Purge.java

index f8a8f7578a71a13f6ed94e719dd9210fe02c5994..8177c8dd4bd90858907026a059ba5582b01180a7 100644 (file)
  */
 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
index 112cab95d8eca20116f9f8d53d888692a9f85ac8..790a4f96a374e48bbad1d9e7e540539c2f740759 100644 (file)
@@ -31,7 +31,7 @@ import java.util.List;
 
 /**
  * see SONAR-522
- * 
+ *
  * @since 1.11
  */
 public final class PurgeRuleMeasures extends Purge {
index 803fbcdb98cc50a05e3854ee9a45433a7e272505..96f2ffa371a7f21ac83b31a43f40ab39f658aada 100644 (file)
@@ -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);