Alex Rivera | Logout

How can I analyze Python code to identify problematic areas?

Asked 2008-09-19T07:40:22.010
100

I have a large source repository split across multiple projects. I would like to produce a report about the health of the source code, identifying problem areas that need to be addressed.

Specifically, I'd like to call out routines with a high cyclomatic complexity, identify repetition, and perhaps run some lint-like static analysis to spot suspicious (and thus likely erroneous) constructs.

How might I go about constructing such a report?

Edit
Report

1 Answer

4

There is a tool called CloneDigger that helps you find similar code snippets.

answered 2009-02-22T09:57:22.757

Your Answer