Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lines Of Code in Team foundation server

I'm looking for reporting tools for TFS, I need to get Lines of Code for individual developer between 2 dates, do you think it is doable via TFS?

like image 798
Sameh Avatar asked Mar 11 '13 14:03

Sameh


People also ask

What is TFS code?

TFS provides controls for managing requirements, projects, labs and releases and uses Team Foundation Version Control or GiT for source code management. Offered as a locally installed software suite or a cloud-based service, TFS is used to manage teams of programmers working on the same software project.

Does Team Foundation Server use Git?

Git-TFS - Work with your Team (Foundation Server) with Git. Git-tfs is an open source two-way bridge between Microsoft Team Foundation Server (TFS) and git, similar to git-svn. It fetches TFS commits into a git repository and lets you push your updates back to TFS.

Is Team Foundation a DevOps server?

What is Azure DevOps Server? Previously known as Team Foundation Server (TFS), Azure DevOps Server is a set of collaborative software development tools, hosted on-premises. Azure DevOps Server integrates with your existing IDE or editor, enabling your cross-functional team to work effectively on projects of all sizes.


2 Answers

This is how I get lines of code for TFS/Visual Studio projects:

  1. Open solution
  2. Open window: View -> Other Windows -> Code Metrics Results
  3. Run metrics: Click the icon at the top left - Calculate Code Metrics for Solution
    • Metrics collected
    • Has Lines of Code column
like image 163
Robert J. Good Avatar answered Oct 22 '22 16:10

Robert J. Good


I did it once per Management request. This may not be the perfect solution but it works. I reported LOC added for a TFS branch. I'm attaching TFS cube screenshot from old version (TFS 2008) since TFS version is missing here. I'm sure new version will be similar.

enter image description here

like image 44
Manish Jain Avatar answered Oct 22 '22 17:10

Manish Jain