Merge branch 'rep_quality' of https://git.trustie.net/jacknudt/trustieforge into rep_quality

This commit is contained in:
Your Name 2016-06-22 11:26:03 +08:00
commit 2275fe6d23
2 changed files with 5 additions and 2 deletions

View File

@ -48,8 +48,8 @@ class QualityAnalysisController < ApplicationController
def index
data = open('http://123.59.135.93:8891/api/resources/index?resource=my:project985&depth=-1&metrics=complexity,class_complexity,lines,comment_lines,blocker_violations').read
cc=JSON.parse(data)
p cc
@cc =JSON.parse(data)
end
# Find project of id params[:project_id]

View File

@ -0,0 +1,3 @@
<% @cc.each do |c| %>
<%= c %>
<% end %>