Name | CXX Plugin |
Authors | François DORIN, Franck BONIN, Vincent HARDION |
Jira | http://jira.codehaus.org/browse/SONARPLUGINS/component/14579 |
State | Under development |
License | LGPL v3 |
Download sources | |
Download jar |
|
Compatibility with Sonar
| 2.3 | 2.4 | 2.11 |
|---|---|---|---|
0.0.1-SNAPSHOT | ok |
|
|
0.0.3 | ? | ok |
|
0.0.4-SNAPSHOT | ? | ok | ok |
| 0.0.5-SNAPSHOT | ? | ok | ok |
Description / Features
This plugin adds basic support of C++ language into Sonar.
The following features are implemented since v0.0.1-SNAPSHOT :
- Duplications detection
- Commented-out code detection
- Calculation of basic metrics : 'lines of code', 'physical lines', 'blank lines' and 'comment lines'
- Source code coloriser
- Rules checking (using RATS)
The following features are implemented since v0.0.3 :
- Rules checking with CppCheck
- Cyclomatique complexity with CppNcss
- xUnit test reports
- Code style checking using Vera++
- Coverage reports from Gcov and Gcovr
- Memory fault reports from Valgrind (xml)
The following features are implemented since v0.0.4 :
- CppCheck reports generation
- Full integration with cxx-maven-plugin (pom syntax simplified)
- C++ sample project provided here
The following features are implemented since v0.0.5 :
- xslt filter for xUnit sensor using property sonar.xunit.xslt.url (or maven cxx plugin xunit config parameter : xunit.xslt.url)
- sonar plugin api 2.7
Usage & Installation
Simply add the jar file into the plugin directory of sonar.
Deppending tour needs you may :
- install RATS
- install CppCheck
- install CppNcss
- install Vera++ (and cxx-plugin helper vera++Report2checkstyleReport.perl)
- use gcc and gcov and install gcovr from FAST Sandia tools (or cxx-plugin modified version of gcovr.py)
- install Valgrind
More informations from Readme.txt or C++ sample project provided here
Known limitations
TBD
Changelog
0.0.1 initial release with RATS support.
0.0.2 internal developpement release (not available)
0.0.3 first release with Cppcheck, Cppncss, Vera++, Gcov and Valgrind support.
0.0.4 CppCheck reports generation, Full integration with cxx-maven-plugin (cxx maven, still for proposal, can be found here)
0.0.5 xslt for xunit, sonar plugin api 2.7

