Hi All!
I have an installation of SonarQube 8.6.0.39681 (on a windows server), with cxx plugin sonar-cfamily-plugin-6.15.0.25047 (or am I mistaken about which plugin handles C/C++?)
I am trying to have sonarqube include the clang-tidy report into to the SonarQube report.
I was following Use clang-tidy for static analysis and integration in Sonarqube | Blog blog("Baptiste Wicht");
The source code is built and scanned on a Ubuntu 18.04.
I try to read in the clang-tidy report with “-Dsonar.cxx.clangtidy.reportPath=build/clang_log_all”.
Full command:
SONAR_SCANNER_OPTS="-Djavax.net.ssl.trustStore=/usr/lib/jvm/java-11-openjdk-amd64/lib/security/cacerts" sonar-scanner -Dsonar.projectKey=<project_key> -Dsonar.sources=. -Dsonar.host.url=https://<local_sonarqube_server> -Dsonar.login= -Dsonar.scm.provider=git -Dsonar.cfamily.build-wrapper-output=build/output -Dsonar.cfamily.threads=nproc
-Dsonar.branch.name=<branch_name> -Dsonar.cfamily.cache.enabled=true -Dsonar.cfamily.cache.path=…/sonarcache -Dsonar.exclusions=/third_party//* -Dsonar.cxx.clangtidy.reportPath=build/clang_log_all
In the blog post, it is stated that you needed to build the snapshot of the latest version of the plugin. Did this feature not make it into the plugin? From which version? Is the command line option something else? How can I see which version of the plugin I am using?
Regards
Robert