views:

100

answers:

4

Hello,

In the Java world for instance, there are some very sophisticated tools to manage the quality of the source code, and that cover more than one dimension, such as : Coding Rules Comments Complexity Unit testing Code coverage etc.

These tools are very useful to manage the technical debt. They connect to a repository of source code and scan it. They can be triggered automatically just by the fact of committing the source code.

We have a large number of ASP.NET applications to maintain and evolve, and have continuous flow of demands for new ones to be created. We know that we have a technical debt, but we are facing some challenges of identifying it and having it under control.

I am wondering if there are some tools to manage the source code quality in ASP.NET applications like those mentioned above.

Thanks in advance, Albert

+1  A: 

All of those tools are available in Visual Studio Team System. You may be especially interested in the guidelines for writing quality code. You'll find much more information there on how to use the profiling tools, etc. in Team System to improve code quality.

tvanfosson
Those tools wil be in the Premium edition of Visual Studio 2010, making them a little more affordable. Cyclomatic complexity, class coupling, lines-of-code and a general "maintainability index", all presented in a grid, sortable on any of these measurements, and you can drill down from project to folder to class to method to see where your hot spots are. Very, very nice.
Cylon Cat
+1  A: 

A nice tool is NDepend, which analyzes DLLs and reports dependencies of course, but also quite a few code complexity measurements. There is a built SQL-like query language that is also helpful to find non-compliant or complex methods.

(I have no affiliation with the company, but I use the product when doing code reviews)

Timores
+1  A: 

we use resharper 4.5 VS add-in.
google it and the satisfaction guaranteed.

jadook
A: 

Thank you for those great answers. I will go and check those tools.

Here is a great one for the Java code. It is very easy to install and configure, and we have it as part of our continuous integration process. Unfortunately it can not scan .Net code.

Sonar

I wish the .Net community could have something similar.

albert green