I would like to collect some statistics of the code that we have in our TFS installation to be able to see how some aspects of the code changes over time. Basically I'd like to see if we learn something from the lessons about Clean Code and Refactoring that we got.
The report I'd like to see is:
Changes in the average number of lines per method in solution between date1 and date2. (are we refactoring long methods)
Changes in the average number of methods per class in solution between date1 and date2 (are we refactoring classes that do many things)
Changes in the average number of usings per class in solution between date1 and date2 (are we limiting the dependences needed)
The report could a list of values that could be drawn as a line to show how the values changes over time.
I know there are API:s in TFS and that I can write it myself but I hope to get an answer that says I don't have to :-)