hg clone https://bitbucket.org/akorn/helloworld cd helloworld/04-pep8 && make env upThe make file has a target for mccabe metric, so issue make mccabe.
Tuesday, November 20, 2012
Cyclomatic (or conditional) complexity is a metric used to indicate the complexity of a source code. In this post we will take a look at web frameworks source code and estimate excessive complexity, something that is beyond recommended level of 10 (threshold that points to the fact the source code is too complex and refactoring is suggested). Here is a list of web frameworks examined: source code is hosted on bitbucket, let clone it into some directory and setup virtual environment (this will download source code per framework listed above).