Welcome to MSDN Blogs Sign in | Join | Help

Code Metrics Customization

A number of people have asked:

Is there a way to customize the existing code metrics or add additional ones?

The simple answer at this time is No.  There are no extension points or customizations available at this time for code metrics.  This feature was added late in the cycle for VS 2008 and we were out of time to design and add the required hooks. We will use this release to gather feedback about the sorts of extensions you want. 

To that end please feel free to respond to this post with information about any customizations or additional metrics that would be of interest to you. This will help us a lot in our future planning.

Published Thursday, November 15, 2007 11:54 PM by conorm

Comments

Thursday, November 15, 2007 8:07 PM by MSDN Blog Postings » Code Metrics Customization

# MSDN Blog Postings » Code Metrics Customization

Friday, November 16, 2007 10:31 PM by Li Yang

# re: Code Metrics Customization

In certain cases, I still prefer FxCop which is customizable.

Saturday, November 17, 2007 6:14 AM by Aen Sidhe

# re: Code Metrics Customization

Code complexity elements should be customizable, IMO (complexity of cycles, logical operations, etc)

Tuesday, November 20, 2007 9:39 AM by Team System News

# VSTS Links - 11/20/2007

The Visual Studio Code Analysis Team Blog on Code Metrics as Check-In Policy and Code Metrics Customization....

Wednesday, November 28, 2007 9:57 AM by Joshua Flanagan

# re: Code Metrics Customization

Either implement CQL (I'm not sure if the full spec is publicly available) or add an extension point that will allow you to run NDepend for code metrics. Anything less would be a huge step down for anyone currently doing code metrics with (what I assume) the most common .NET based code metrics tool.

Wednesday, January 02, 2008 1:22 AM by Luo Cao

# re: Code Metrics Customization

Is the API of code metrics exposed? If so, we can write a script/C# program to call code metrics API to caclulate the code metrics of our project automatically. By this tool, we can record the code metrics score of the project everyday and watch the trend.

Wednesday, January 02, 2008 11:37 AM by conorm

# re: Code Metrics Customization

The API of code metrics is not currently exposed.  The scenario of recording code metrics regularly to evaluate the tren is something we are definitely considering for a future release.

Wednesday, January 02, 2008 7:12 PM by conorm

# re: Code Metrics Customization

Luo: Sorry, the API is not exposed.  We are considering this for a future release or at least releasing a command line.

Monday, June 09, 2008 10:05 AM by Дмитрий Лапшин

# Фиксированные пороговые значения метрик кода

Коллеги озадачили меня вопросом - как в Visual Studio Code Analysis поменять пороговые значения для метрик

Thursday, February 05, 2009 12:33 PM by Termékinformációk fejlesztőknek

# Visual Studio Team System 2008 Development Edition with MSDN Premium Subscription

[ Nacsa Sándor , 2009. január 19. – február 5.] Ez a Team System változat fejlett eszközrendszert kínál

New Comments to this post are disabled
 
Page view tracker