Importing a report from a non supported tool
As of version 0.2, any static analysis tool can be reused with the plugin using the property sonar.cxx.externalrules.reportPath. The following table describes the format of the report
| Xml Description - RNG-Schema | Example |
|---|---|
<element name="results" xmlns="http://relaxng.org/ns/structure/1.0"> <zeroOrMore> <element name="error"> <attribute name="file"/> <attribute name="msg"/> <attribute name="id"/> <attribute name="line"> <data type="integer" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" /> </attribute> <text/> </element> </zeroOrMore> </element> | <?xml version="1.0"?> |
| Attribute | Description |
| file | source file, relative to project path |
| line | line of the violation |
| id | id of the rule, mapped a rule in sonar. See "Enable the rules in Sonar server" below |
| msg | description of the violation |
Creation of a profile for the external tool - Mandatory before running a analysis
The creation of rule set for this tool re-uses the concept of Extending Rules in C++ Analysers therefore the only thing needed is a xml file with the definition of the rules and their respective activation
Third Party Tools and Rules Profiles
| Tool | Source | Rules Profile |
|---|---|---|
| cpplint | Todo |
This is maintained by the community, so if you want to share additional rules profiles do so by using the sonar user mailing list |

