Search code examples
visual-studio-2013reflectioncode-metricslines-of-codeline-count

Get List of functions (with metrics) in My Solution


I have a large assembly (written in VB.NET).

Is there a simple way (or tool) that will list all the functions with perhaps the size of each function (in respect to lines of code)?

I have downloaded nDepend but could not see that facility within it.


Solution

  • With NDepend you just have to do: NDepend > Search > Search Method by Size.

    NDepend Search Method by Size

    Notice that you can export this result to HTML, XML, txt, Excel.

    Notice that a C# LINQ query is generated and you can edit it to refine it and eventually append more code metrics:

    NDepend list method code metrics

    Notice also you can list methods according to more criterias than size:

    NDepend Search criterias