代码检查 CODEARTS CHECK-查询缺陷概要:响应参数

时间:2023-11-13 14:37:46

响应参数

状态码: 200

表3 响应Body参数

参数

参数类型

描述

task_id

String

任务id

task_name

String

任务名字

creator_id

String

创建者id

git_url

String

代码仓地址

git_branch

String

代码仓分支,如果是MR模式,为源分支

last_check_time

String

上一次检查时间

code_line_total

Integer

代码总行数

code_line

Integer

代码有效行数

code_quality

Number

代码质量

issue_count

Integer

问题数

risk_coefficient

Number

危险系数

duplication_ratio

String

重复比例

complexity_count

Integer

复杂度

duplicated_lines

Integer

重复行数

comment_lines

Integer

注释行数

comment_ratio

String

注释比例

duplicated_blocks

Integer

重复块

last_exec_time

String

上次执行时间

check_type

String

检查类型

created_at

String

创建时间

cyclomatic_complexity_per_method

String

代码平均复杂度

cyclomatic_complexity_per_file

String

代码平均复杂度(文件)

critical_count

String

致命问题数

major_count

String

严重问题数

minor_count

String

一般问题数

suggestion_count

String

提示问题数

is_access

String

门禁质量是否通过

trigger_type

String

任务触发方式

file_duplication_ratio

String

文件重复率

new_count

Integer

新增问题数

solve_count

Integer

已解决问题数

duplicated_files

Integer

重复文件数目

new_critical_count

String

新增致命问题数

new_major_count

String

新增严重问题数

new_minor_count

String

新增一般问题数

new_suggestion_count

String

新增提示问题数

状态码: 400

表4 响应Body参数

参数

参数类型

描述

error_code

String

错误码

error_msg

String

错误描述

状态码: 401

表5 响应Body参数

参数

参数类型

描述

error_code

String

错误码

error_msg

String

错误描述

support.huaweicloud.com/api-codecheck/ShowTaskDetailV2.html