Answered Monitoring project code health

  • Tuesday, September 04, 2012 3:28 PM
     
     

    Is there a way to monitor project code health like in TFS and provide a report on the TFS dashboard like way Sonar does for a selected project. Specific metrics that I want captured are:

      • % Build Success
      • Code Violations
      • Rules Compliance
      • Quality Index
      • Security Violations
      • Lines of Code
      • Number of files
      • Number of Assemblies
      • Duplications in code
      • Useless code
      • Commented code
      • Total lines of code

All Replies

  • Tuesday, September 04, 2012 8:47 PM
     
     Answered

    Yes, its possible at least forsome of it, assuming you use the corresponding features.
    Many years ago I made an overview report to display the use of features like WorkItems, Builds, UnitTesting and so on.

    From out of my head most of your desired metrics, or at least my reading of them,  is already captured in the TFS Warehosue database and ready for you to create reports on.

    The ones not directly present in the warehouse and might require extra work is (again outof my head) QualityIndex, Duplications in Code, Useless Code, Commented Code . Security viloations might or might not be covered assuming on your definitions, whitch also is a valid comment for all of the metrics in your list.

    • Proposed As Answer by Jesper Fernström Wednesday, September 05, 2012 11:05 AM
    • Marked As Answer by LBMumbai Friday, September 07, 2012 9:38 AM
    •  
  • Wednesday, September 05, 2012 11:05 AM
     
     

    I think Mattias gave a good summary. As a sidenote though, I would suggest "Unused code" instead of "Useless code"


    JESPER FERNSTRÖM
    Transcendent Group

  • Friday, September 07, 2012 8:18 AM
    Moderator
     
     
    Hi LBMumbai,

    How about the issue now?

    I suggest you mark useful post as answer, it will be very beneficial for other community members having the similar questions.

    Regards,

    Lily Wu [MSFT]
    MSDN Community Support | Feedback to us

  • Friday, September 07, 2012 9:37 AM
     
     
    Thanks everyone for the replies. Good to know there is a way to do it. However, I have still not found a way to do that using TFS itself. Still looking... 
  • Friday, September 07, 2012 9:38 AM
     
     

    I think Mattias gave a good summary. As a sidenote though, I would suggest "Unused code" instead of "Useless code"


    JESPER FERNSTRÖM
    Transcendent Group


    That is the terminology used in Sonar :)