sonarqube C++ 代码在预览模式下扫描有什么作用?

What does sonarqube C++ code scans in preview mode do?

我只是 运行 预览模式下的声纳扫描仪,我找不到执行生成的任何文件。 运行 的输出同样没有用。

....
INFO: 3645 compilation units analyzed, current is file.cpp
INFO: 3650 compilation units analyzed, current is file.cpp
INFO: 3653 compilation units analyzed, current is file.cpp
INFO: 3657 compilation units analyzed, current is file.cpp
INFO: 3659 compilation units analyzed, current is file.cpp
INFO: 3662 compilation units analyzed, current is file.cpp
INFO: 3664 compilation units analyzed, current is file.cpp
INFO: 3665 compilation units analyzed, current is file.cpp
INFO: 3666 compilation units analyzed
INFO: PPH: 6803 files, 71566094 bytes, 2359139 hits, 2365942 queries
INFO: Sensor CPP (done) | time=10649441ms
INFO: Performing issue tracking
INFO: 8778/8778 components tracked
INFO: ANALYSIS SUCCESSFUL
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 2:57:37.875s
INFO: Final Memory: 91M/6230M
INFO: ------------------------------------------------------------------------

它实际上不应该非常有用。它用于技术用途。相反,您应该调查 SonarLint,它同时提供 IDE 集成和 command-line 版本用于 pre-commit 分析。

通过 SonarC++ 4.4.0 和 SonarLint for Eclipse CDT 的组合,您还可以获得 C/C++ 支持。