Sonar Abacus Plugin
This plug-in estimates the complexity of each component in order to help you use the "abacus methodology" (méthode des abaques in French).
This is a methodology widely use in France to estimate the effort of changes.
Example of abacus
|Complexity of the Change|
- The effort of a complex change in a simple component is estimated to 0.8 man days.
- The effort of a very complex change in a complex component is estimated to 5.0 man days.
The complexity of a component is defined according to its cyclomatic complexity.
The defaut values are:
|Abacus Complexity||Cyclomatic Complexity|
|Medium||10 <= X < 30|
30 <= X < 60
|Very complex||>= 60|
See the Configuration section to set your own thresholds.
At module or project level, a widget is available to display the abacus complexity and the abacus complexity distribution.
The abacus complexity distribution can be displayed either in number of files or percentage.
See screenshots below.
Why using this plug-in?
This plug-in will :
- help you estimate your effort for change more accurately
- help clients and subcontractors as it is based on a factual methodology. Thé abacus complexity of each component Will evolve according to the different changes.
Arguments between clients and subcontractors because no factual way to estimate both complexity
Thé thresholds Should be défined together by both parties.
Compatibility with VIEWS
Usage & Installation
- Copy the jar into /extensions/plugins/ directory
- Restart Sonar Web server
At instance or project level, the abacus complexity thresholds can be set with the sonar.abacus.complexityThresholds property.
|defaultColors||33cc33,ffff33,ff9900,ff0033,000000||Coma-separated list of colors (hexadecimal format) for the pie chart display.|
Make sure to have at least as many colors as levels of complexity in your abacus.
To set the default display: number of files distribution or percentage distribution.
Drill-down from the abacus complexity of a component does not work due to the following issue in Sonar Core: SONAR-3233.
Differential views are not implemented.
Compatibility with VIEWS : as each project can define its own abacus, this plug-in does not compute the abacus complexity and distribution for a view.
Ideas of Improvement
More complex formula with XXX?