Question

I would like a program that goes in my TFS and weekly takes a snapshot of different metrics like code complexity, Lines of code, code coverage and other stuff and displays them in a graph.

It would also be cool to see stuff by individual programmer, although I am not that worried about this as I think it would actually be detrimental to the team to measure at this level.

I cannot be the first person who has thought of this. Does this sort of thing exist?

I will start by mentioning Sonar which appears to have historical C# code metrics. There must be more?

Was it helpful?

Solution

You've answered your question by yourself :) Sonar IS what you're looking for :) For developer-based metrics you can see also the commerical plugin http://www.sonarsource.com/products/plugins/developer-tools/developer-cockpit/

OTHER TIPS

Indeed, there is more, there is the tool NDepend. Disclaimer I am one of the developer of the tool.

NDepend collects more than 80 code metrics on a .NET code base, including code complexity, Lines of code, code coverage... It is very easy to create your own code metrics like the famous C.R.A.P metric.

The BuildMachine edition can be inserted into your TFS Build Process, and generate HTML+javascript reports (see some sample generated reports here).

enter image description here

200 default Code Rules are proposed and it is very easy to create your own Code Rules thanks to code querying on LINQ (CQLinq). Code Rules can be validated in the HTML+javascript report or/and in inside Visual Studio. Code Rules can deal with code metrics, code dependencies, OOP design, code diff, naming conventions...

With the Developer edition, NDepend is 100% integrated in Visual Studio 2012, 2010, and 2008. It can produce live dependency graph, dependency matrix and code metric treemap. Finally the tool has also some facilities to deal with code diff.

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top