Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version. Compare with Current ·  View Page History

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 

http://svn.codehaus.org/sonar-plugins/trunk/cxx/ 

Download jar 

 

Compatibility with Sonar

 

2.3

2.4

0.0.1-SNAPSHOT

 ok

 

0.0.3

?

ok

0.0.4-SNAPSHOT

?

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

Usage & Installation

Simply add the jar file into the plugin directory of sonar.

Deppending tour needs you may :

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

Labels
  • None