From: Simon Brandhof Date: Tue, 18 Feb 2014 13:31:41 +0000 (+0100) Subject: SONAR-5063 Deprecate the metric "packages" X-Git-Tag: 4.2~98 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9250493c833f593b55be4e09e59fafa8b198339c;p=sonarqube.git SONAR-5063 Deprecate the metric "packages" --- 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 e44bd3f9e68..07a9451d12a 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 @@ -1100,10 +1100,8 @@ widget.size.lines=Lines widget.size.generated.suffix=\ generated widget.size.lines.suffix=\ lines widget.size.statements.suffix=\ statements -widget.size.files.suffix=\ files -widget.size.classes=Classes +widget.size.classes.suffix=\ classes widget.size.files=Files -widget.size.packages.suffix=\ packages widget.size.directories.suffix=\ directories widget.size.methods.suffix=\ functions widget.size.accessors.suffix=\ accessors diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb index 23bcb4a27b0..e3f741587f4 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb @@ -3,7 +3,6 @@ ncloc=measure('ncloc') classes=measure('classes') files=measure('files') - packages=measure('packages') functions=measure('functions') projects=measure('projects') if measure('lines') || ncloc @@ -43,9 +42,6 @@ <%= format_measure(statements, :suffix => message('widget.size.statements.suffix'), :url => url_for_drilldown(statements)) -%> <%= dashboard_configuration.selected_period? ? format_variation(statements) : trend_icon(statements) -%>

<% end %> - <% if files && measure('classes') %> -

<%= format_measure(files, :suffix => message('widget.size.files.suffix'), :url => url_for_drilldown(files)) -%> <%= dashboard_configuration.selected_period? ? format_variation(files) : trend_icon(files) -%>

- <% end %> <% if projects %>

<%= format_measure(projects, :suffix => message('widget.size.projects.suffix')) -%> <%= dashboard_configuration.selected_period? ? format_variation(projects) : trend_icon(projects) -%>

<% end %> @@ -54,24 +50,18 @@
+

<%= message('widget.size.files') -%>

+

+ <%= format_measure(files, :url => url_for_drilldown(files)) -%> + <%= dashboard_configuration.selected_period? ? format_variation(files) : trend_icon(files) -%> +

+

<%= format_measure('directories', :suffix => message('widget.size.directories.suffix'), :url => url_for_drilldown('directories')) -%> <%= dashboard_configuration.selected_period? ? format_variation('directories') : trend_icon('directories') -%>

<% if classes %> -

<%= message('widget.size.classes') -%>

-

- <%= format_measure(classes, :url => url_for_drilldown(classes)) -%> - <%= dashboard_configuration.selected_period? ? format_variation(classes) : trend_icon(classes) -%> -

-

<%= format_measure(packages, :suffix => message('widget.size.packages.suffix'), :url => url_for_drilldown(packages)) -%> <%= dashboard_configuration.selected_period? ? format_variation(packages) : trend_icon(packages) -%>

- <% else %> -

<%= message('widget.size.files') -%>

-

- <%= format_measure(files, :url => url_for_drilldown(files)) -%> - <%= dashboard_configuration.selected_period? ? format_variation(files) : trend_icon(files) -%> -

-

<%= format_measure('directories', :suffix => message('widget.size.directories.suffix'), :url => url_for_drilldown('directories')) -%> <%= dashboard_configuration.selected_period? ? format_variation('directories') : trend_icon('directories') -%>

+

<%= format_measure(classes, :url => url_for_drilldown(classes), :suffix => message('widget.size.classes.suffix')) -%> <%= dashboard_configuration.selected_period? ? format_variation(classes) : trend_icon(classes) -%>

<% end %>

<%= format_measure(functions, :suffix => message('widget.size.methods.suffix'), :url => url_for_drilldown(functions)) -%> <%= dashboard_configuration.selected_period? ? format_variation(functions) : trend_icon(functions) -%>

<% - if (measure('accessors')) + if measure('accessors') %>

<%= format_measure('accessors', :suffix => message('widget.size.accessors.suffix'), :url => url_for_drilldown('accessors')) -%> <%= dashboard_configuration.selected_period? ? format_variation('accessors') : trend_icon('accessors') -%>

<% end %> @@ -79,4 +69,4 @@ -<% end %> \ No newline at end of file +<% end %>