From c50ca34b0ef25e6f0c8ac7a6e08d9886e43c039e Mon Sep 17 00:00:00 2001 From: huang Date: Tue, 19 Jul 2016 09:48:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B4=A8=E9=87=8F=E5=88=86?= =?UTF-8?q?=E6=9E=90=E9=83=A8=E5=88=86=E6=95=B0=E6=8D=AE=E8=BD=AC=E6=8D=A2?= =?UTF-8?q?=E6=88=90=E6=95=B4=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/quality_analysis/_show.html.erb | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/app/views/quality_analysis/_show.html.erb b/app/views/quality_analysis/_show.html.erb index 0f5aebc2d..7991bba09 100644 --- a/app/views/quality_analysis/_show.html.erb +++ b/app/views/quality_analysis/_show.html.erb @@ -70,33 +70,33 @@
 质量问题 - <%= @ha["violations"].nil? ? 0 : @ha["violations"] %> + <%= @ha["violations"].to_i %>  问题分类如下:
信息 - <%= @ha["info_violations"].nil? ? 0 : @ha["info_violations"] %> + <%= @ha["info_violations"].to_i %> %;">
@@ -107,23 +107,23 @@

代码行数

-

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

+

<%= @ha["lines"].to_i %>

文件

-

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

+

<%= @ha["files"].to_i %>

目录

-

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

+

<%= @ha["directories"].to_i %>

-

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

+

<%= @ha["classes"].to_i %>

方法

-

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

+

<%= @ha["functions"].to_i %>