Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find the longest method/class in solution?

For code analysis goals I want to know some interesting statistics about my project. I.e. number of classes, methods, the longest class, the longest method etc etc. Is there any nice tool for this or maybe extension for Visual Studio?

I looked at codecity, but it can analyze only MSE files which I don't have and has the worst interface I've seen for the past 5 years, but functionality nearly what I need.

like image 866
Vitalii Korsakov Avatar asked Jan 18 '13 15:01

Vitalii Korsakov


1 Answers

Visual Studio has such a function in Analyze => Calculate Code Metrics. Among other things, it shows the LoC for each namespace which can be split down to method level. It doesn't make any fancy diagrams, but for pure interest it is sufficient.

enter image description here

like image 146
Lennart Avatar answered Sep 28 '22 09:09

Lennart