开始使用Coverity for python包

时间:2016-09-07 22:06:10

标签: python coverity

我下载了Python / PHP的封面包,并试着去 让它分析我的包裹:

./cov-build --dir cov-int --fs-capture-search /my/dir/ python mine.py

考虑到'my / dir'包含包的根目录,'mine.py'实现了入口点。

我得到了结果:

command line: No input files.
[STATUS] Running filesystem capture search...
[STATUS] Emitting 485 source files from filesystem capture
|0----------25-----------50----------75---------100|
****************************************************
[WARNING] Build command python /tmp/trunk/quex-exe.py exited with code 255. Please verify that the build completed successfully.

我不清楚Coverity对'build'的意义。这是否意味着脚本的示例调用?我该如何开始?

'doc /'子目录中的大多数'help'文件都是空的(!)

1 个答案:

答案 0 :(得分:2)

[WARNING] Build command python /tmp/trunk/quex-exe.py exited with code 255. Please verify that the build completed successfully.

这意味着您在cov-build行(python mine.py)上指定的命令不会以零退出。可能是因为:

command line: No input files.

但无论如何,看起来cov-build 成功捕获了485源文件,因此您可能根本不需要使用构建命令。在这种情况下,您可以指定--no-command开关并省略python mine.py,此时您可以继续执行其余工作流程。

相关问题