diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-07-04 11:45:41 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-07-04 11:45:41 +0200 |
commit | 0138b716a56e2cd173e6f1137b9ea991f17b84f8 (patch) | |
tree | 75e6297c8eae1b0951572e2579b8406712955aee /plugins | |
parent | c7fcce16f714c62f9c0c6fc9acf80d45e39c65c2 (diff) | |
download | sonarqube-0138b716a56e2cd173e6f1137b9ea991f17b84f8.tar.gz sonarqube-0138b716a56e2cd173e6f1137b9ea991f17b84f8.zip |
SONAR-5439 Remove Most Violated Components widget from Hotspot dashboard
Diffstat (limited to 'plugins')
2 files changed, 1 insertions, 3 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/dashboards/ProjectHotspotDashboard.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/dashboards/ProjectHotspotDashboard.java index 6b2058f3126..dd31fffc562 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/dashboards/ProjectHotspotDashboard.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/dashboards/ProjectHotspotDashboard.java @@ -63,8 +63,6 @@ public final class ProjectHotspotDashboard extends DashboardTemplate { } private void addSecondColumn(Dashboard dashboard) { - dashboard.addWidget("hotspot_most_violated_resources", 2); - Dashboard.Widget widget = dashboard.addWidget(HOTSPOT_METRIC, 2); widget.setProperty(METRIC_PROPERTY, "uncovered_lines"); diff --git a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/dashboards/ProjectHotspotDashboardTest.java b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/dashboards/ProjectHotspotDashboardTest.java index 14979dfa333..9723b5202bd 100644 --- a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/dashboards/ProjectHotspotDashboardTest.java +++ b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/dashboards/ProjectHotspotDashboardTest.java @@ -44,6 +44,6 @@ public class ProjectHotspotDashboardTest { Dashboard dashboard = template.createDashboard(); assertThat(dashboard.getLayout()).isEqualTo(DashboardLayout.TWO_COLUMNS); - assertThat(dashboard.getWidgets()).hasSize(8); + assertThat(dashboard.getWidgets()).hasSize(7); } } |