| Name | Comparing |
| Latest version | 0.1 ( 8 Aug 2012 ) |
| Requires SonarQube version | 3.2 or higher ( check version compatibility ) |
| Download | http://snapshots.repository.codehaus.org/org/codehaus/sonar-plugins/sonar-comparing-plugin/0.1-SNAPSHOT/sonar-comparing-plugin-0.1-SNAPSHOT.jar |
| License | GNU LGPL 3 |
| Developers | David FRANCOIS |
| Issue tracker | https://jira.codehaus.org/browse/SONARPLUGINS/component/15588 |
| Sources | - |
Description / Features
This plug-in offers one new global widget to display the number of lines of code or the number of projects by language:


This plug-in offers one new page at project level as well. This page enables to compare different metrics with the average value for the corresponding metric for the current language:

By default, the plugin displays the following metrics:
- SQALE (only if it is installed)
- sqale_rating
- Size
- ncloc
- files
- Violations
- violations_density
- Complexity
- function_complexity
- file_complexity
- Duplication
- duplicated_lines_density
- Documentation
- comment_lines_density
- public_documented_api_density
It is possible to display more metrics (quantitative metrics). It can be useful during the comparison with another project

We add the following metrics for display:
- SQALE
- sqale_index
- Size
- functions
- statements
- Violations
- violations
- blocker_violations
- critical_violations
- major_violations
- minor_violations
- info_violations
- Complexity
- complexity
- Duplication
- duplicated_lines
- duplicated_blocks
- duplicated_files
- Documentation
- comment_lines
- public_undocumented_api
It is possible to select a specific project for the same language to compare the different metrics with:

Installation
- Install the Comparing plugin through the Update Center or download it into the SONAR_HOME/extensions/plugins directory
- Restart the SonarQubeserver
Configuration
Widget parameters
| Parameter | Default value | Description |
|---|---|---|
| metricDisplay | PRJ | To define if the widget displays the number of projects or the number of lines of code by language. Possible values:
|
Change Log
TODO

