SonarQube not finding any XML reports during scanning

Hello,

I’m new to SonarQube and after reading all the documentation, still have some doubts about the sonar-scanner functionality. Maybe someone has experienced the same issues and can help me.

Environment:

  • Windows 7 (VMWare)
  • Sonarqube 8
  • SonarScanner 4.2.0.1873
  • Cppcheck
  • Vera++

I’m trying that SonarQube reads the XML reports generated by Cppcheck and Vera++. The sonar-scanner is executed successfully, but no issues are detected in reports. Looks like it is just not finding the reports due to some issue with my configuration.

I do not want SonarQube to compile any code, but just to read the exported reports from other tools, hence I am not using the build-wrapper-win-x86.exe. This is my sonar-project.properties:

sonar.projectKey=TestProject
sonar.projectName=My Test Project
sonar.projectVersion=1.0
sonar.sources=.
sonar.tests=tests
sonar.sourceEncoding=UTF-8
sonar.cfamily.build-wrapper-output=build_wrapper_output_dir

sonar.cxx.cppcheck.reportPath=build/cppcheck_report.xml
sonar.cxx.vera.reportPath=build/verapp_report.xml

sonar.cxx.suffixes.headers=.dummy
sonar.cxx.suffixes.sources=.dummy

#sonar.cxx.compiler.parser=MSBuild
#sonar.cxx.compiler.reportPath=*.log
#sonar.cxx.compiler.charset=UTF-8

If anybody knows how to import these kind of reports into SonarQube, every highlights are appreciated.

Cheers and thank you

Hi,

The Cxx plugin is not supported in this community. You’ll need to direct your questions to its GitHub issues.

 
Ann