已合并
[CANNBOT]codecheck扫描修改 #5907
wangweidong创建于 6月9日
[CANNBOT]codecheck扫描修改 #5907
已合并
wangweidong创建于 6月9日
wangweidong
6月9日

描述

codecheck扫描修改
G.EXP.27-CPP 使用恰当的基本类型作为操作符的操作数
G.EXP.36-CPP 控制表达式的结果应是布尔值
G.INC.03-CPP 头文件应该自包含
等规则修改

关联的Issue

https://gitcode.com/cann/ops-nn/issues/3246

测试

OBP冒烟:22710
二级冒烟:6340

文档更新

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 wangweidong 的贡献)
Wwangweidong
6月9日 创建了 pull request,commit ad513202
Wwangweidong
6月9日 关联了issue:[Requirement|需求建议]: codecheck 扫描修改
CANN-robotCANN-robot成员
6月9日 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
6月9日 评论:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here
You can get sig-info at here


PR Approval Progress

Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
activation 王星, 周奇龙 (2/2) 王星, 周奇龙 (2/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

gcw_YBIAEfqJ, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
wangweidong
6月9日 评论:

compile

likedislike
Wwangweidong
6月9日 update merge request[project id: 7665709, iid: 5907, commit_id: 31cdd8cf8d4735392929741435103dfffed3f20a] virtual merging success
CANN-robotCANN-robot成员
6月9日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
6月9日 评论:

流水线任务触发成功
任务链接 [edd0a4e4186d45b4ae3613e52b4c4f86][流水线指导]

任务名称状态日志下载链接
Compile_Ascend_X86_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_experimental ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_950 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_950 ✅ SUCCESS >>>>> >>>>>
Compile_Pre ✅ SUCCESS >>>>>
pre_comment ✅ SUCCESS >>>>>
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_950_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_experimental_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_950_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910b ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910c ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_950 ✅ SUCCESS >>>>> >>>>>
Compile_classify ✅ SUCCESS >>>>>
UT_Test_ophost ✅ SUCCESS
UT_Test_opapi ✅ SUCCESS
UT_Test_kernel ✅ SUCCESS
UT_Test_opgraph ✅ SUCCESS
PreSmoke_A900 ✅ SUCCESS >>>>>
API_Check ✅ SUCCESS >>>>>
PreSmoke_ATK_Test_A2 ✅ SUCCESS >>>>>
UT_Test_report_lcov ⚠️ WARNING >>>>>

[2026-06-09 20:49:25]    CI执行结束

likedislike
CANN-robot
CANN-robot成员
6月9日 评论:

流水线任务触发成功
任务链接 [5f4f999b2ef247a1afc72dd2bd754605][流水线指导]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
antipoison ✅ SUCCESS >>>>>
codecheck_checkpr ✅ SUCCESS
StaticCheck_codespell_check ✅ SUCCESS
StaticCheck_link_validity_check ✅ SUCCESS
StaticCheck_resource_existence_check ✅ SUCCESS
StaticCheck_tag_closed_check ✅ SUCCESS
StaticCheck_markdownlint ✅ SUCCESS
codecheck_style ✅ SUCCESS >>>>>
codecheck_precommit ⚠️ WARNING >>>>> >>>>>
SCA ✅ SUCCESS >>>>>

[2026-06-09 20:39:22]    CI执行结束

likedislike
CANN-robotCANN-robot成员
6月9日 添加了label:api-check-pass
CANN-robotCANN-robot成员
6月9日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
6月9日 添加了label:ci-pipeline-passed
Wwangweidong
6月10日 update merge request[project id: 7665709, iid: 5907, commit_id: 940bf3be085b6839cc6f0fe96db90e9c9c8f96c2] virtual merging success
CANN-robotCANN-robot成员
6月10日 删除了label:ci-pipeline-passedapi-check-pass
CANN-robotCANN-robot成员
6月10日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
6月10日 评论:

流水线任务触发成功
任务链接 [0063bdf758d24ef28ba796656b8d329b][流水线指导]

任务名称状态日志下载链接
Compile_Ascend_X86_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_experimental ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_950 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_950 ✅ SUCCESS >>>>> >>>>>
Compile_Pre ✅ SUCCESS >>>>>
pre_comment ✅ SUCCESS >>>>>
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_950_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_experimental_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_950_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910b ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910c ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_950 ✅ SUCCESS >>>>> >>>>>
Compile_classify ✅ SUCCESS >>>>>
UT_Test_ophost ✅ SUCCESS
UT_Test_opapi ✅ SUCCESS
UT_Test_kernel ✅ SUCCESS
UT_Test_opgraph ✅ SUCCESS
PreSmoke_A900 ✅ SUCCESS >>>>>
API_Check ✅ SUCCESS >>>>>
PreSmoke_ATK_Test_A2 ✅ SUCCESS >>>>>
UT_Test_report_lcov ⚠️ WARNING >>>>>

[2026-06-10 10:50:39]    CI执行结束

likedislike
CANN-robot
CANN-robot成员
6月10日 评论:

流水线任务触发成功
任务链接 [7686e7e51f844f52b8f35fd5f00f85a7][流水线指导]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
antipoison ✅ SUCCESS >>>>>
codecheck_checkpr ✅ SUCCESS
StaticCheck_codespell_check ✅ SUCCESS
StaticCheck_link_validity_check ✅ SUCCESS
StaticCheck_resource_existence_check ✅ SUCCESS
StaticCheck_tag_closed_check ✅ SUCCESS
StaticCheck_markdownlint ✅ SUCCESS
codecheck_style ✅ SUCCESS >>>>>
codecheck_precommit ⚠️ WARNING >>>>> >>>>>
SCA ✅ SUCCESS >>>>>

[2026-06-10 10:41:25]    CI执行结束

likedislike
CANN-robotCANN-robot成员
6月10日 添加了label:api-check-pass
CANN-robotCANN-robot成员
6月10日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
6月10日 添加了label:ci-pipeline-passed
wangweidong
6月11日 评论:
likedislike
Wwangweidong
6月11日 修改了pull request 的描述
wang-xing001成员
6月11日 评论:

/approve
/lgtm

likedislike
CANN-robotCANN-robot成员
6月11日 添加了label:approved
sunday成员
6月11日 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
6月11日 添加了label:lgtm
CANN-robotCANN-robot成员
6月11日 关闭了关联的issue
CANN-robotCANN-robot成员
6月11日 合入了pull request