已关闭
[Bug-Report|缺陷反馈]: test_aclnn_add_example.cpp ends with redundant trailing blank lines (code style) #43
LiuZonggu创建于 11 天前关闭于 10 天前
LiuZonggu
11 天前 评论:
11 天前 评论:
Fix submitted via PR: https://gitcode.com/cann/ops-ras/merge_requests/114 (branch LiuZonggu:fix/redundant-whitespace, removes the two redundant trailing blank lines).


LiuZonggu
11 天前 评论:
11 天前 评论:
Also cherry-picked onto the 9.2.0 branch: https://gitcode.com/cann/ops-ras/merge_requests/115 (branch LiuZonggu:fix/redundant-whitespace-9.2.0, same whitespace cleanup).


10 天前 关闭了 issue
10 天前 添加了label:resolved
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
The file
scripts/opgen/template/add_example/examples/test_aclnn_add_example.cppends with two redundant blank lines after the closing*/of the license header comment. This is a code style issue: a source file should end with a single trailing newline. Since this file belongs to the opgenadd_exampletemplate, the redundant blank lines are also propagated to newly generated example files.Environment / 环境信息 (Mandatory / 必填)
Not environment-specific. This is a code style issue in the opgen template sources, observable on the latest
masterbranch.Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
scripts/opgen/template/add_example/examples/test_aclnn_add_example.cpponmaster.tail -n 5 scripts/opgen/template/add_example/examples/test_aclnn_add_example.cpp.*/of the license comment.Describe the expected behavior / 预期结果 (Mandatory / 必填)
The file should end with the closing
*/of the license comment followed by a single trailing newline, with no extra blank lines, in line with basic code style conventions.Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
* See LICENSE in the root of the software repository for the full text of the License. */ - - \ No newline at end of fileSpecial notes for this issue/备注 (Optional / 选填)
A fix will be submitted via an associated PR.