diff options
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. |