如何解决我想在 SonarQube 中显示一个清晰的解析报告,但加载后没有输出
我想使用“C++(社区)”插件在 SonarQube(社区版)中显示清晰的解析报告。但是加载后没有输出。从 sonarcub 中,我需要显示清晰的报告,不需要分析。
file sonar-project.properties:
sonar.projectKey=myProject
sonar.cxx.clangtidy.reportPath=clang-tidy-report
sonar.cxx.errorRecoveryEnabled=True
sonar.verbose=true
sonar.cxx.jsonCompilationDatabase=compile_commands.json
#----- Default SonarQube server
sonar.host.url=http://localhost:9000/
我在 bash 中使用过:
构建包装器:
build-wrapper --out-dir bw-outputs ./build.sh
并使用 SonarQube 扫描仪:
sonar-scanner
我发现这个网站展示了如何使用分析器: https://www.spazioit.com/SAFeToolsetHelp/Step4-ConfigureSonarQubeAnalyses.html
控制台输出:
12:26:26.972 INFO: Analysis report uploaded in 112ms
12:26:26.981 DEBUG: Report Metadata written to
/home/bivk/bivk_merge/bivk_bootloader/.scannerwork/report-task.txt
12:26:26.981 INFO: ANALYSIS SUCCESSFUL,you can browse http://localhost:9000/dashboard?id=bootloder
12:26:26.981 INFO: Note that you will be able to access the updated dashboard once the server has
processed the submitted analysis report
12:26:26.981 INFO: More about the report processing at http://localhost:9000/api/ce/task?
id=AXkiurWiHwwwwqfrQgb
12:26:26.992 DEBUG: Post-jobs : Final report
12:26:26.992 INFO: Executing post-job 'Final report'
12:26:26.992 WARN: Preprocessor: 4 include directive error(s). This is only relevant if parser
creates
Syntax errors. The preprocessor searches for include files in the with
'sonar.cxx.includeDirectories'
defined directories and order.
12:26:26.992 WARN: Source code parser: 2 Syntax error(s) detected. Syntax errors Could cause
invalid
software metric values. Root cause are typically missing includes,missing macros or compiler
specific
extensions.
12:26:26.998 INFO: Analysis total time: 35.382 s
12:26:27.002 INFO: ------------------------------------------------------------------------
12:26:27.003 INFO: EXECUTION SUCCESS
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。