Skip to content

sonar.cxx.reportPaths

guwirth edited this page Mar 10, 2021 · 4 revisions

Overview

Sensor to read reports from the TODO tool. TODO

Note: The cxx plugin itself does not run the tool, you have to do that yourself beforehand. The sensor only reads the report generated by the tool!

Supported versions

  • Link to the tool page: TODO
  • The sensor supports rules from TODO with version TODO.

Create report

In order to run TODO and generate a fitting report, make sure:

  • to call it from the projects root directory, so that the paths in the report fit
  • that the parameter matches the sonar.sources list in sonar-project.properties

Sample command lines:

TODO

Example of a report file

If the tool was executed successfully, a report like the example below should be generated:

TODO

Configure cxx plugin

  1. First check if the file extensions read in by the cxx plugin are set (sonar.cxx.file.suffixes).
  2. The rules for which you want to generate issue must be activated in the Quality Profile of your project. You can find instructions on how to do this under Manage Quality Profiles.
  3. Set the analysis parameter TODO in the configuration file sonar-project.properties of your project. The Report Paths link describes the configuration options.
  4. Execute the SonarScanner to transfer the project with the report to the SonarQube Server.

Sample for sonar-project.properties:

TODO

Troubleshooting

Clone this wiki locally