Merge branch 'rep_quality' of https://git.trustie.net/jacknudt/trustieforge into rep_quality
This commit is contained in:
commit
2275fe6d23
|
@ -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]
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
<% @cc.each do |c| %>
|
||||
<%= c %>
|
||||
<% end %>
|
Loading…
Reference in New Issue