Monday, January 19. 2009PHP_Depend-0.9.3 releasedTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Hi,
Why in PHP_Depend_Metrics_ClassLevel_Analyzer::visitMethod() You sum all ccn2 to compute CIS ? $this->_nodeMetrics[$uuid]['cis'] += $ccn2; The definition : CIS Class interface size Number of non-private methods + variables defined by class. CIS = WMCnp + VARSnp. Measures the size of the interface from other parts of the system to the class. I understand WMCnp in pdepend it's not 1 per method but ccn2. In this case there is a metric giving the number of public methods and variables of a class ?
Hello Davide,
you are right, the WMC and CIS metrics use a variant of thew original metric definition, described in an IEEE paper. It is interesting that you ask me today for a metric that sums all public members of a class, because I needed the same information this morning, which isn't provided by one of the currently available analyzers, but I will add it to one of the next PHP_Depend versions... Greetings Manuel |
ProjectsFurther stuffCategories |
