forked from Trustie/forgeplus
fixed 代码质量分析api
This commit is contained in:
parent
0ff0abe1af
commit
15915c9779
|
|
@ -4,10 +4,6 @@ class SonarTasksController < ApplicationController
|
|||
before_action :authenticate_user!
|
||||
|
||||
def index
|
||||
t.integer :codeLines, default: 0
|
||||
t.integer :bugs, default: 0
|
||||
t.integer :codeSmell, default: 0
|
||||
t.integer :vulnerability, default: 0
|
||||
@sonar_task = SonarTask.find_by(project_id: @project.id)
|
||||
normal_status(-1, "未检测") if @sonar_task.blank?
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue