Get statistics on a C # WAP project for communication with a client

I have a client who thought that a very dynamic ASP.NET application was a very simple system, but in order to implement it the way they need it for future growth, it grew to over 100 different code files.

I'm looking for a way, most likely with some kind of static code analysis tool, to put in some numbers that might "make sense" to a non-technical person. I fully understand that lines of code and other metrics are not "valid" items to score, but in this case I need the line type, XML comment count, "Total files", "Total folders".

I know I can watch some of them, but I'm looking for an easy way to get these values ​​in bulk! I found some old posts here but didn't say anything specifically about .NET (current versions) and / or C #.

Ideally, I want something that the C # WAP project can explore. SQL Server will add AWESOME, but not 100% required!

+1


source to share


2 answers


You can use the NDepend tool to get 82 code metrics such as # lines of code, # parameters for methods, # method callers, percent comment for a method, percent test coverage, rankings (most popular methods / types ...).

All 82 metrics are listed on this page http://www.ndepend.com/Metrics.aspx .



Also, Code Metrics is just one of the main features of NDepend:

0


source


For simple lines of code and comments, etc. I found the VS plugin "Project Line Count" very well ( http://www.codeproject.com/KB/macros/linecount.aspx ).



If you need more detailed metrics, and I would suggest a simple explanation of cyclical complexity, this will lead to a deeper understanding of your client and respect for what you know. Tools like Reflector have plugins that will display the complexity and size of a class in block diagrams. See http://www.codeplex.com/reflectoraddins , or more specifically http://www.codeplex.com/reflectoraddins/Wiki/View.aspx?title=CodeMetrics .

0


source







All Articles