On Dec 15, 2006, at 10:13 PM, Chris Dolan wrote:


OK, I see. Perhaps I was distracted from your main point by mention of cyclomatic complexity, which has a rather specific definition.

Mea culpa.
In the next release I will change the documentation for Perl::Metrics::Simple to make clear how exactly the complexity score is calculated, and that it is only an approximation of true cyclomatic complexity.

Meanwhile, I am open to making the measurement more useful. For example, should
    if ($a eq $b)
or
    if ( $a == $b )

be counted as more complex than:
    if ( $a )

?

-M

-------------------------------------------------------
Matisse Enzer <[EMAIL PROTECTED]>
http://www.matisse.net/  - http://www.eigenstate.net/



Reply via email to