Code Analysis Team Blog

What’s New in Code Analysis for Visual Studio 2012

Hi Everyone, With the launch of the Beta we would like to tell you about some of the great...

Author: Vince Smith [MSFT] Date: 03/08/2012

Preventing check-ins to TFS that contain code analysis warnings

  Recently we have received several questions regarding Visual Studio Code Analysis integration...

Author: Andrew B Hall - MSFT Date: 04/06/2011

FxCop 10.0 is available

Version 10.0 of FxCop is the version that ships with Visual Studio 2010 Premium. FxCop 10.0 is part...

Author: Duke Kamstra Date: 07/26/2010

Data Flow Analysis Rules in Visual Studio 2010

This blog post applies to Visual Studio 2010 Premium and Ultimate editions. The content was written...

Author: Duke Kamstra Date: 04/14/2010

How to write custom static code analysis rules and integrate them into Visual Studio 2010

This blog explains how to implement your own static code analysis rules for analyzing your .NET (C#,...

Author: Duke Kamstra Date: 03/26/2010

Comparison of Code Analysis Warnings and Errors - Visual Studio 2008 versus Visual Studio 2010

This blog compares the Code Analysis warnings and errors generated by Visual Studio 2008 and Visual...

Author: Duke Kamstra Date: 03/23/2010

What’s new in Code Analysis for Visual Studio 2010

This post summarizes the new functionality you will experience sing the Code Analysis functionality...

Author: Duke Kamstra Date: 03/22/2010

Fun with Code Analysis Rule Sets

Two weeks ago, I introduced you to Visual Studio 2010 September '08 CTP (Community Technology...

Author: cristend Date: 11/12/2008

New for Visual Studio 2008 SP1 and FxCop 1.36 – Multi-targeting rule

I've just published a post over my blog about a new feature we added for Visual Studio 2008 SP1 and...

Author: davkean Date: 08/25/2008

FxCop 1.36 Released!

We are pleased to announce that we've released the next version of FxCop. This release has a number...

Author: brettwo Date: 08/19/2008

David Kean's new blog

For those that are interested, I've just started a new personal blog, Dave's Box, where I will be...

Author: davkean Date: 06/10/2008

FxCop 1.35 now available (again) for download

We've just uploaded FxCop 1.35 to MSDN Code Gallery after we lost our home on GotDotNet - this is...

Author: davkean Date: 02/29/2008

FAQ: How do I prevent FxCop 1.36 from firing warnings against generated code?

I've upgraded from FxCop 1.35 to 1.36 and now FxCop has started to fire warnings against typed...

Author: davkean Date: 02/28/2008

What happened to the download and documentation of FxCop 1.35?

Update: You can now download FxCop 1.35 directly from MSDN Code Gallery. As you many you have well...

Author: davkean Date: 02/26/2008

Tutorial on writing your own Code Analysis rule

Jason Kresowaty has posted a great tutorial on writing Code Analysis/FxCop rules. He also spends...

Author: davkean Date: 01/18/2008

What do you want to see in the second edition of Framework Design Guidelines?

Krzysztof and Brad have announced they are working on the second edition of the awesome Framework...

Author: davkean Date: 01/15/2008

FAQ: Which Code Analysis rules shipped in which version?

In response to a lot of recent requests, we've put together a complete list of rules that shipped in...

Author: davkean Date: 01/07/2008

Reporting Code Analysis Defect Counts

Code analysis defect counts are available in the cube that is part of the TFS Data Warehouse. This...

Author: conorm Date: 01/02/2008

Come chat with the Code Analysis team tomorrow

Join members of the Visual Studio Team System product group to discuss features available in Team...

Author: davkean Date: 12/04/2007

Try the Code Analysis Rule Sets Feature in the November "Rosario" November 2007 CTP

We have a great new feature that we are previewing in Microsoft® Visual Studio® Team...

Author: conorm Date: 11/28/2007

Positioning Code Metrics to Management

Another question that is coming up is: How can (or should) code metrics be presented to management ?...

Author: conorm Date: 11/28/2007

Maintainability Index Range and Meaning

Another question: The maintainability index has been re-set to lie between 0 and 100. How and why...

Author: conorm Date: 11/20/2007

Code Metrics as Check-in Policy

This is the first in a series of posts around questions I am getting asked related to code metrics....

Author: conorm Date: 11/16/2007

Code Metrics Customization

A number of people have asked: Is there a way to customize the existing code metrics or add...

Author: conorm Date: 11/15/2007

FxCop 1.36 Beta Released!

I'm pleased to announce that we've released a beta of the next version of FxCop. This release has a...

Author: davkean Date: 10/10/2007

New for Visual Studio 2008 - Code Metrics

While we've already briefly spoken about Code Metrics when we announced it, I thought I would...

Author: davkean Date: 10/03/2007

New for Visual Studio 2008 - The 'Analyze' menu

While Ian Huff has already talked about the new 'Developer' menu that has been added to Visual...

Author: davkean Date: 09/22/2007

New for Visual Studio 2008 - Support for anonymous methods and lambda expressions

One of my favorite new features for Code Analysis in Visual Studio 2008 is our support for analyzing...

Author: davkean Date: 09/21/2007

New for Visual Studio 2008 - Code Analysis Policy improvements

One not very well known feature that lights up when connected to a Team Foundation Server, is the...

Author: davkean Date: 09/20/2007

New for Visual Studio 2008 - Custom Dictionaries

Once you turn on the new spelling rules that we've added to Visual Studio 2008, you will want to...

Author: davkean Date: 08/20/2007

New for Visual Studio 2008 - Spelling rules

Surprisingly, one the biggest requests for Code Analysis in Visual Studio 2005 was to include the...

Author: davkean Date: 08/12/2007

What rules do Microsoft have turned on internally?

I've recently received a few requests asking about the Code Analysis rules we run internally against...

Author: davkean Date: 08/09/2007

$(CodeAnalysisTreatWarningsAsErrors) MSBuild property

For Visual Studio 2008, we have added a new MSBuild property that allows you to easily treat all...

Author: davkean Date: 08/08/2007

Come chat with the Code Analysis team (and Team System) team - tomorrow

Join members of the Visual Studio Team System product group to discuss features available in Visual...

Author: davkean Date: 08/01/2007

Code Analysis FAQ

Find answers to commonly asked questions about Visual Studio Code Analysis. General FAQ: Why is...

Author: davkean Date: 07/11/2007

FxCop Designers Honored with the Engineering Excellence Chairman's Award

Mike Fanning, Krzysztof Cwalina, and Brad Abrams were awarded with the Engineering Excellence...

Author: davkean Date: 07/05/2007

What kind of custom rules do you want to write?

Our excellent program manager, Joe Rohde, is trying to gather information on the kinds of custom...

Author: davkean Date: 07/04/2007

Come chat with the Team System product team tomorrow

Join members of the Visual Studio Team System product group to discuss features available in Visual...

Author: davkean Date: 07/03/2007

FAQ: How do I debug a custom rule?

While writing your custom rule, you will likely come across a need to debug it and work out why it's...

Author: davkean Date: 05/16/2007

FAQ: Why is file and line information available for some warnings in FxCop but not for others?

It appears that sometimes FxCop displays a link to the source line and file in the Message Details...

Author: davkean Date: 05/12/2007

Krzysztof Cwalina on Framework Design Guidelines and API Design

A lecture on API design by Krzysztof Cwalina (the brains behind the Framewok Design Guidelines) has...

Author: davkean Date: 05/10/2007

TIP: How to change the (Orcas) Managed Code Analysis naming/design rules to fire on internals

A while ago I mentioned that FxCop (and hence Managed Code Analysis) naming and design rules only...

Author: davkean Date: 05/08/2007

Visual Studio 'Orcas' Beta 1 Released!

If you've been living under a rock (or just distracted by this Silverlight thingy), you might have...

Author: davkean Date: 05/06/2007

Dealing with a Code Analysis backlog?

Nicole Calinoiu has started a (what I hope to be long) series on introducing Code Analysis (FxCop in...

Author: davkean Date: 05/04/2007

Code Analysis (Team System) Chat Roundup

We had two great chats last Friday. Thank-you to all that attended, I had a lot of fun. The...

Author: davkean Date: 05/02/2007

Correct usage of the CompilerGeneratedAttribute and the GeneratedCodeAttribute

Both Code Analysis, FxCop and Code Metrics make extensive use of CompilerGeneratedAttribute and...

Author: davkean Date: 04/27/2007

We have a new forum!

Well...okay, I lied, it's actually the same great forum as before, it's just been renamed. Visual...

Author: davkean Date: 04/25/2007

Code Analysis (Team System) Chat - This Friday

Update: We've added another session for Asia and the Pacific. Join members of the Visual Studio Team...

Author: davkean Date: 04/22/2007

FAQ: How do I get the SourceContext for a local?

I want to fire on the naming of a local, however, whenever I pass the local to the Problem...

Author: davkean Date: 03/27/2007

After upgrading to Service Pack 1, the error 'CA0055: Could not load [AssemblyName]' occurs when running Code Analysis

We've been hearing a few reports of the following errors being output to the Error List after...

Author: davkean Date: 03/15/2007

Next>