Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Complexity is one of the most valuable code quality metrics helping one to make a judgement on how complex the code is. The more complex the code, the higher the level of code defects, making the code costlier to maintain. So, by reducing complexity, the number of bugs and defects can be reduced, along with its lifetime cost.

How

...

metric works

Chart Overview

The chart represents the level of code complexity (Axis Y) distributed over time (Axis Y). The level of complexity per each project child unit is clickable in the legend, what allow to display/hide the series on the chart.

Chart can be viewed for the number of paths through the code weighted by file, class or function/method.


Calculation

...

Complexity = E - N + 2*P,

...

RAG thresholds: Red - metric value > 200, Amber - metric value > 60, otherwise Green.

Data Source

Data for the metric can be collected from Sonar.

...