How can I analyze Python code to identify problematic areas?

前端 未结 8 1882
鱼传尺愫
鱼传尺愫 2020-12-07 06:58

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

8条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-07 07:37

    For static analysis there is pylint and pychecker. Personally I use pylint as it seems to be more comprehensive than pychecker.

    For cyclomatic complexity you can try this perl program, or this article which introduces a python program to do the same

提交回复
热议问题