diff options
author | Fabrice Bellingard <fabrice.bellingard@sonarsource.com> | 2013-01-25 17:06:31 +0100 |
---|---|---|
committer | Fabrice Bellingard <fabrice.bellingard@sonarsource.com> | 2013-01-25 17:06:31 +0100 |
commit | a275de7f4f653dbdc8b2192ece6a8d1ad6e0371b (patch) | |
tree | 703bd19205fd55101582d9ada888023988d088de /plugins | |
parent | a4288cbb94e206ce764d028da23bb98a7d923de8 (diff) | |
download | sonarqube-a275de7f4f653dbdc8b2192ece6a8d1ad6e0371b.tar.gz sonarqube-a275de7f4f653dbdc8b2192ece6a8d1ad6e0371b.zip |
SONAR-3692 Use the new widget property type for "Most Violated Rules"
Diffstat (limited to 'plugins')
2 files changed, 2 insertions, 2 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 3a97dc4d7be..30f1877cc3b 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 @@ -28,7 +28,7 @@ import org.sonar.api.web.WidgetPropertyType; @WidgetProperties( { @WidgetProperty(key = "numberOfLines", type = WidgetPropertyType.INTEGER, defaultValue = "5"), - @WidgetProperty(key = "defaultSeverity", type = WidgetPropertyType.STRING) + @WidgetProperty(key = "defaultSeverity", type = WidgetPropertyType.SINGLE_SELECT_LIST, defaultValue = "", options = {"INFO", "MINOR", "MAJOR", "CRITICAL", "BLOCKER"}) }) public class HotspotMostViolatedRulesWidget extends CoreWidget { public HotspotMostViolatedRulesWidget() { diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties index ba45487df1e..21c9021108d 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties @@ -942,7 +942,7 @@ widget.hotspot_most_violated_rules.no_violation_for_severity=No result widget.hotspot_most_violated_rules.any_severity=Any severity widget.hotspot_most_violated_rules.property.numberOfLines.name=Number of lines widget.hotspot_most_violated_rules.property.defaultSeverity.name=Default severity -widget.hotspot_most_violated_rules.property.defaultSeverity.desc=Values: BLOCKER, CRITICAL, MAJOR, MINOR, INFO +widget.hotspot_most_violated_rules.property.defaultSeverity.desc=If selected, severity used to initialize the dropdown list of widget widget.hotspot_most_violated_resources.name=Most violated resources widget.hotspot_most_violated_resources.description=Shows the resources that have the most violations. |