Track code changes over time

I would like to get some statistics on the code that we have in our TFS installation to see how some aspects of the code change over time. Basically, I would like to find out if we learn something from the clean code and refactoring lessons we learned.

The report that I would like to see is as follows:

  • Changes the average number of rows per method in the solution between date 1 and date2. (we will reorganize long methods)

  • Changing the average number of methods for each class in a solution between date1 and date2 (we are refactoring classes that do a lot of things)

  • Changes the average number of wins for each class in the decision between date1 and date2 (do we limit the dependencies)

A report may display a list of values ​​that can be displayed as a string to show how the values ​​change over time.

I know that there is an API: s in TFS and that I can write it myself, but I hope to get an answer that says I don't need it :-)

+5
source share
1 answer

Unfortunately, TFS does not explicitly track this data. It keeps track of code failure (which you can read here here ), but it will only tell you about the number of rows added, deleted and changed over time.

, TFS API. , , , API Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer.QueryHistory API. , , .

,

+1

All Articles