socialforge/app/views/quality_analysis/_show.html.erb

117 lines
7.6 KiB
Plaintext
Raw Normal View History

2016-06-23 11:24:58 +08:00
<p> lines: <%= @complexity["msr"][0]["frmt_val"] %></p>
<p> files: <%= @complexity["msr"][2]["frmt_val"] %></p>
<p> directories: <%= @complexity["msr"][3]["frmt_val"] %></p>
<p> classes: <%= @complexity["msr"][1]["frmt_val"] %></p>
<p> function: <%= @complexity["msr"][4]["frmt_val"] %></p>
<p> total Complexity: <%= @complexity["msr"][5]["frmt_val"] %></p>
<p>file_complexity: <%= @complexity["msr"][6]["frmt_val"] %></p>
<p>class_complexity: <%= @complexity["msr"][7]["frmt_val"] %></p>
<p>function_complexity: <%= @complexity["msr"][8]["frmt_val"] %></p>
2016-06-22 17:40:13 +08:00
<div class="project_r_h">
<h2 class="project_h2" style="width:180px;">SonarQube质量分析</h2>
</div>
2016-06-23 11:24:58 +08:00
<a href="javascript:void(0);" class="blue_btn_cir fl mt5 c_white" style="background-color:#64bdd9;">branch:master</a>
2016-06-22 17:40:13 +08:00
<div class="cl"></div>
<div class="tac f20 fb mt35 mb30">项目代码质量分析报告</div>
<div class="analysis-tag-wrap f16"> <span class="analysis-tag fl mr15"></span> <span class="fb fl">概要信息</span></div>
<div class="analysis-block mt10 mb40 flex f14">
<div class="analysis-genral"><img src="images/homepageImage.jpg" width="90" class="image-cir" />
<p class="fontGrey3 mt15">质量等级</p>
<p class="fontBlue2 pr">A<span class="f8 c_white analysis-genral-icon b_green2 borderRadius">正常</span></p>
</div>
<div class="analysis-genral"><img src="images/homepageImage.jpg" width="90" class="image-cir" />
<p class="fontGrey3 mt15">复杂度</p>
<p class="fontBlue2 pr">44<span class="f8 c_white analysis-genral-icon b_green2 borderRadius">正常</span></p>
</div>
<div class="analysis-genral"><img src="images/homepageImage.jpg" width="90" class="image-cir" />
<p class="fontGrey3 mt15">重复</p>
<p class="fontBlue2 pr">44%<span class="f8 c_white analysis-genral-icon b_green2 borderRadius">正常</span></p>
</div>
<div class="analysis-genral"><img src="images/homepageImage.jpg" width="90" class="image-cir" />
<p class="fontGrey3 mt15">注释率</p>
<p class="fontBlue2 pr">12%<span class="f8 c_white analysis-genral-icon b_red borderRadius">偏低</span></p>
</div>
</div>
<div class="analysis-tag-wrap f16"> <span class="analysis-tag fl mr15"></span> <span class="fb fl mr10">质量等级</span><span class="mr10 fontGrey2"><span class="c_red f18" style="margin-top:-5px; display:inline-block;">2</span>/5分</span><span class="fontGrey2">可定性评价为:<span class="c_red">质量中等</span></span></div>
<div class="analysis-block mt10 mb40 f14">
<div><span class="fontGrey3 mr30">技术债务</span><span class="fontBlue2 w70 pInline">14天</span><span class="fontGrey2">查看详情</span></div>
<div><span class="fontGrey3 mr30">质量问题</span><span class="fontBlue2 w70 pInline">130</span><span class="fontGrey2">问题分类如下:</span></div>
<div class="ml90 mt15">
<div class="mb10"><span class="analysis-block-icon mr5"></span><span class="fontGrey3 mr45">阻断</span><span class="fontBlue2 w70 pInline">4</span><span class="quality-percentage"><span class="quality-percentage-rate"></span></span></div>
<div class="mb10"><span class="analysis-serious-icon mr5"></span><span class="fontGrey3 mr45">严重</span><span class="fontBlue2 w70 pInline">75</span><span class="quality-percentage"><span class="quality-percentage-rate"></span></span></div>
<div class="mb10"><span class="analysis-main-icon mr5"></span><span class="fontGrey3 mr45">主要</span><span class="fontBlue2 w70 pInline">428</span><span class="quality-percentage"><span class="quality-percentage-rate"></span></span></div>
<div class="mb10"><span class="analysis-secondary-icon mr5"></span><span class="fontGrey3 mr45">次要</span><span class="fontBlue2 w70 pInline">225</span><span class="quality-percentage"><span class="quality-percentage-rate"></span></span></div>
<div><span class="analysis-info-icon mr5"></span><span class="fontGrey3 mr45">信息</span><span class="fontBlue2 w70 pInline">114</span><span class="quality-percentage"><span class="quality-percentage-rate"></span></span></div>
</div>
</div>
<div class="analysis-tag-wrap f16"> <span class="analysis-tag fl mr15"></span> <span class="fb fl mr10">代码规模</span><span class="fontGrey2">可定性评价为:<span class="c_red">规模中等</span></span></div>
<div class="analysis-block mt10 mb40 flex f14">
<div class="analysis-genral">
<p class="fontGrey3">代码行数</p>
2016-06-23 11:24:58 +08:00
<p class="fontBlue2"><%= @complexity["msr"][0]["frmt_val"] %></p>
2016-06-22 17:40:13 +08:00
</div>
<div class="analysis-genral">
<p class="fontGrey3">文件</p>
2016-06-23 11:24:58 +08:00
<p class="fontBlue2"><%= @complexity["msr"][2]["frmt_val"] %></p>
2016-06-22 17:40:13 +08:00
</div>
<div class="analysis-genral">
<p class="fontGrey3">目录</p>
2016-06-23 11:24:58 +08:00
<p class="fontBlue2"><%= @complexity["msr"][3]["frmt_val"] %></p>
2016-06-22 17:40:13 +08:00
</div>
<div class="analysis-genral">
<p class="fontGrey3">类</p>
2016-06-23 11:24:58 +08:00
<p class="fontBlue2"><%= @complexity["msr"][1]["frmt_val"] %></p>
2016-06-22 17:40:13 +08:00
</div>
<div class="analysis-genral">
<p class="fontGrey3">方法</p>
2016-06-23 11:24:58 +08:00
<p class="fontBlue2"><%= @complexity["msr"][4]["frmt_val"] %></p>
2016-06-22 17:40:13 +08:00
</div>
</div>
<div class="analysis-tag-wrap f16"> <span class="analysis-tag fl mr15"></span> <span class="fb fl">贡献统计</span></div>
<div class="analysis-block mt10 f12">
<ul class="contribute-list">
<li class="fl fontGrey2 contribute-list-avatar">&nbsp;</li>
<li class="fl fontGrey2 contribute-list-code">代码行数</li>
<li class="fl fontGrey2 contribute-list-problem">引入质量问题数</li>
<li class="fl fontGrey2 contribute-list-rate">引入质量问题数/代码行数</li>
<div class="cl"></div>
</ul>
<ul class="contribute-list">
<li class="fl fontGrey2 contribute-list-avatar contribute-list-height">
<div class="mt8"><img src="images/homepageImage.jpg" width="50" class="image-cir" />
<p class="fontGrey2 hidden">小明</p>
</div>
</li>
<li class="fl fontGrey2 contribute-list-code contribute-list-height contribute-list-line-height">18340</li>
<li class="fl fontGrey2 contribute-list-problem contribute-list-height contribute-list-line-height">230</li>
<li class="fl contribute-list-rate fontBlue2 contribute-list-height contribute-list-line-height">.012540</li>
<div class="cl"></div>
</ul>
<ul class="contribute-list">
<li class="fl fontGrey2 contribute-list-avatar contribute-list-height">
<div class="mt8"><img src="images/homepageImage.jpg" width="50" class="image-cir" />
<p class="fontGrey2 hidden">小王</p>
</div>
</li>
<li class="fl fontGrey2 contribute-list-code contribute-list-height contribute-list-line-height">834</li>
<li class="fl fontGrey2 contribute-list-problem contribute-list-height contribute-list-line-height">34</li>
<li class="fl contribute-list-rate fontBlue2 contribute-list-height contribute-list-line-height">.04077</li>
<div class="cl"></div>
</ul>
<ul class="contribute-list">
<li class="fl fontGrey2 contribute-list-avatar contribute-list-height">
<div class="mt8"><img src="images/homepageImage.jpg" width="50" class="image-cir" />
<p class="fontGrey2 hidden">小亮</p>
</div>
</li>
<li class="fl fontGrey2 contribute-list-code contribute-list-height contribute-list-line-height">134</li>
<li class="fl fontGrey2 contribute-list-problem contribute-list-height contribute-list-line-height">10</li>
<li class="fl contribute-list-rate fontBlue2 contribute-list-height contribute-list-line-height">.07462</li>
<div class="cl"></div>
</ul>
</div>