fixed 代码质量分析api

This commit is contained in:
xiaoxiaoqiong 2022-07-08 11:43:23 +08:00 committed by zsx
parent 0ff0abe1af
commit 15915c9779
1 changed files with 0 additions and 4 deletions

View File

@ -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