没有准备供Cov-build用于python项目进行分析的编译单元

时间:2018-10-08 14:26:28

标签: python coverity

我正在尝试使Coverity扫描正常工作,但是当我尝试运行Coverity网站上建议的命令时,会发出0个编译单元:

$ cov-build --dir cov-int --no-command --fs-capture-search .
Coverity Build Capture (64-bit) version 2017.07 on Linux 4.18.11-arch1-1-ARCH x86_64
Internal version numbers: c7e331b562 p-milo-push-30112.651


[STATUS] Running filesystem capture search...
[WARNING] Path '/some-project/cov-int' looks like an idir. Skipping filesystem capture on it.
[STATUS] Emitting non-source files from filesystem capture
[STATUS] Emitting 46 source files from filesystem capture
|0----------25-----------50----------75---------100|
****************************************************

0 Python compilation units (0%) are ready for analysis
The cov-build utility completed successfully.

我尝试删除--no-command并运行python应用程序(cov-build --dir cov-int --no-command --fs-capture-search python main.py),但仍未准备任何编译单元。 build-log.txt中没有错误,唯一的警告是:

[WARNING] During pre_translate, unrecognized option: --fs-capture-search

我也尝试运行cov-configure --comptype python --compiler python2 --template(对于python2和python3都运行,因为我的代码可以在两个版本中运行),但也没有任何变化。知道我在做什么错吗?

0 个答案:

没有答案