Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#540 Add check for complexity per class

open
nobody
Check (274)
5
2012-10-10
2010-06-24
Ruud de Jong
No

The current cyclomatic complexity only counts per method (7 or lower).
According to the Technical Debt plugin in Sonar, the total complexity per class should be 60 or lower.
There is no rule (and therfore no violation in Sonar) to protect this level.
Please note that this is a different rule than the ClassFanOutComplexity.

My suggestion would be: rename the current "CyclomaticComplexity" to "MethodCyclomaticComplexity" and introduce a new "ClassCyclomaticComplexity".

Discussion