Search code examples
refactoringstatic-analysiscode-analysis

Is there a code analyzing tool for finding large methods?


I'm refactoring old code and I want to find all functions that bigger than N lines to refactor it. It would be cool if there was the same tool for finding big classes. The project has a lot of files so it is not so easy to find large methods manually. I couldn't find this tool on the Internet, so, maybe you guys know a tool that can help me? Thanks in advance!


Solution

  • You can find IDE plugins and external tools which will compute cyclomatic complexities of each of your methods to achieve your needs. You can find some tools in this subject