检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
name String 编译参数名称 checker_configs Array of CheckConfigInfo objects 检查参数配置信息 表6 CheckConfigInfo 参数 参数类型 描述 name String 检查参数名称 cfg_key String 检查参数对应的key值
不到依赖 问题现象 代码检查报错,错误日志中提示在Maven仓库中找不到依赖(该依赖为私有依赖)。 原因分析 项目中使用了私有依赖,但没有配置私有依赖扩展点。 处理方法1 在代码检查详情页,选择“设置 > 规则集 > 检查参数”。 在编译命令中使用“-s settings.xml
String 当前 option_key 否 String 当前规则配置项key option_name 否 String 当前规则配置项名称 template_id 否 String 规则集id description 否 String 描述 响应参数 状态码: 201 表6 响应Body参数
单击新建的资源池名称“custom_pool”,进入到资源池配置页面。 单击“新建代理”,在弹出的窗口中,参考表3配置代理信息,其他参数项保持默认即可。 表3 新建代理参数说明 参数 说明 是否安装Docker 勾选此项,配需安装Docker。 自动安装Docker 打开开关,自动安装Docker。 AK 参考获取AK/SK获取。
变更代码检查服务规格 变更代码检查服务套餐规格 代码检查服务支持变更套餐规格,变更影响请参见变更配置后对计费的影响。 登录代码检查控制台。 找到代码检查服务套餐,单击“变更”。 根据需要选择变更规格、变更类型,勾选同意声明,单击“下一步”。 若变更类型选择“续费变更”,则还需要选择续费时长。
line_number String 缺陷所在文件行号 defect_content String 缺陷描述 defect_level String 缺陷等级,0致命,1严重,2一般,3提示 file_path String 缺陷文件路径 created_at String 创建时间
String 文件总数 folders_total String 目录总数 lines_per_file String 文件平均代码行 huge_headerfile_total String 超大头文件数 huge_headerfile_ratio String 超大头文件占比 hu
Array of strings 检查语言,数组格式,支持cpp,java,js,python,php,css,html,go,typescript,csharp rule_sets 否 Array of RuleSetV2 objects 指定规则集 task_type 否 String
"c131886aec...", "name": "IAMUser", "description": "IAM User Description", "areacode": "", "phone": "",
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
file_duplication_ratio String 文件重复率 new_count Integer 新增问题数 solve_count Integer 已解决问题数 duplicated_files Integer 重复文件数目 new_critical_count String
执行代码检查任务时提示:CC.00070400.500 单击任务名称时提示权限不足 C#前端使用WPF组件的项目检查失败 任务执行完成后没有数据 TypeScript任务检查失败,日志显示404
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
针对具体语言而定义的检查规则集合,提高用户代码质量。 圈复杂度 圈复杂度是一种代码复杂度的衡量标准,与其可维护性和可测试性之间存在相关性,这意味着在圈复杂度较高的文件中,重构代码出错的概率较高。代码平均圈复杂度 = 总圈复杂度/函数数。具体风险评估建议如下: 1~5:低风险 6~10:较低风险 11~20:中等风险
入到资源池配置页面。 单击“新建代理”,在弹出的窗口中,参考表3配置代理信息,其他参数项保持默认即可。 表3 新建代理参数说明 参数 说明 自动安装Git 关闭开关,参考“如何手动安装Git?”安装Git。 是否安装Docker 勾选此项,安装Docker。 自动安装Docker