How can I analyze Python code to identify problematic areas?

前端 未结 8 1877
鱼传尺愫
鱼传尺愫 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:53

    For measuring cyclomatic complexity, there's a nice tool available at traceback.org. The page also gives a good overview of how to interpret the results.

    +1 for pylint. It is great at verifying adherence to coding standards (be it PEP8 or your own organization's variant), which can in the end help to reduce cyclomatic complexity.

    0 讨论(0)
  • 2020-12-07 07:53

    Thanks to Pydev, you can integrate pylint in the Eclipse IDE really easily and get a code report each time you save a modified file.

    0 讨论(0)
提交回复
热议问题