提交 4b852310 创建 作者: 宋海霞's avatar 宋海霞

modify

上级 d16f7874
流水线 #156833 已通过 于阶段
用时 1 分 10 秒
......@@ -6,7 +6,7 @@ stages:
- code-analysis
variables:
TEACHERCHECK_REPO: "engintime/cpp-lab/teachers-packet/c-language/Lab011.git"
TEACHERCHECK_REPO: "engintime-cs/teacher-group/shx/Test/casegroup/teachers-packet/readargv-dat-writefile-dat.git"
.codecode-runner: &codecode-runner
tags:
......
  • Developer

    代码质量分析发现了 11 个问题。

    • 0 blocker
    • 🚫 0 critical
    • 2 major
    • 🔽 6 minor
    • 3 info

    注意: 存在下列问题的代码行在本次提交中没有发生变更,无法使用代码行评论的方式进行报告。所以将下列问题汇总显示在这里(点击问题链接可以转到对应的源代码行):

    1. [8 bytes in 1 blocks are definitely lost in loss record 1 of 1

    0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) 0x40070A: main (main.c:10)](https://www.codecode.net/engintime-cs/teacher-group/shx/Test/casegroup/template/readargv-dat-writefile-dat/blob/4b852310b701353f676f16946c5b8d00ab612359/main.c#L10) 📘

    1. Memory leak: p 📘
    2. 🔽 Cppcheck cannot find all the include files. Cppcheck can check the code without the include files found. But the results will probably be more accurate if all the include files are found. Please check your project's include directories and add all of them as include directories for Cppcheck. To see what files Cppcheck cannot find use --check-config. (ProjectKey-176964) 📘
    3. 🔽 Variable 'b' is assigned a value that is never used. 📘
    4. 🔽 Variable 'p' is allocated memory that is never used. 📘
    5. 🔽 Either the condition 'fp2!=0' is redundant or there is possible null pointer dereference: fp2. 📘
    6. 🔽 Unused variable: buf 📘
    7. 🔽 Either the condition 'fp!=0' is redundant or there is possible null pointer dereference: fp. 📘
    8. keyword 'if' not followed by a single space 📘
    9. closing curly bracket not in the same line or column 📘
    10. closing curly bracket not in the same line or column 📘
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论