diff --git a/app/views/quality_analysis/_show.html.erb b/app/views/quality_analysis/_show.html.erb index 7991bba09..b364f5f89 100644 --- a/app/views/quality_analysis/_show.html.erb +++ b/app/views/quality_analysis/_show.html.erb @@ -21,7 +21,7 @@

复杂度

-

<%= @ha["function_complexity"].nil? ? 0 : @ha["function_complexity"] %> +

<%= @ha["function_complexity"].to_i == 0 ? 0 : @ha["function_complexity"] %> borderRadius"> <%= @ha["function_complexity"].nil? ? "良好" : complexity_status(@ha["function_complexity"].to_i)[0] %> @@ -32,7 +32,7 @@

代码重复度

-

<%= @ha["duplicated_lines_density"].nil? ? 0 : @ha["duplicated_lines_density"] %> +

<%= @ha["duplicated_lines_density"].to_i == 0 ? 0 : @ha["duplicated_lines_density"] %> borderRadius"> <%= @ha["duplicated_lines_density"].nil? ? 0 : duplicated_lines_density_status(@ha["duplicated_lines_density"].to_i)[0] %> @@ -41,7 +41,7 @@

注释率

-

<%= @ha["comment_lines_density"].nil? ? 0 : @ha["comment_lines_density"] %> +

<%= @ha["comment_lines_density"].to_i == 0 ? 0 : @ha["comment_lines_density"] %> borderRadius"> <%= @ha["comment_lines_density"].nil? ? 0 : comment_lines_density_status(@ha["comment_lines_density"].to_i)[0] %>