Cyclomatic complexity is a measure of the amount of branching in a function. A higher number of branches gives a higher complexity rating. Higher numbers lead to combinatorial expansion of the 100% coverage testing scenarios required to guarantee the function is bug-free. So high complexity usually means a large chance for bugs. Low complexity means bug-free. This code is written in Perl, but analyzes Python code for complexity by function and class. It also gives statistics about comment density.
Re: nice to see the project is still alive!
we recently made our free timesheets (http://journyx.com) prettier too (with 7.0)
good question. i go back and forth between the 2 alot and perl just felt right for this task. perl is good where every line of input text represents something and python is a language that wants to have one statement per line. i just found it easier that way.