Code Analysis Team Blog

Announcing Visual Studio Code Metrics!

Announcing the new Code Metrics feature for Visual Studio ‘Orcas’! Available in Visual Studio Team...

Author: davkean Date: 02/28/2007

Framework for intergrated FxCop rule testing

Roy Osherove has put together a Framework for testing FxCop rules. It's an interesting approach,...

Author: davkean Date: 02/25/2007

FAQ: How do I run FxCop during a post-build event?

A little known feature of FxCop (in particular FxCopCmd.exe) is its ability to be integrated into...

Author: davkean Date: 02/24/2007

Code Analysis (Team System) MSDN Chat Roundup

Another successful Team System chat with over 150+ questions asked. Thank-you to everyone that...

Author: davkean Date: 02/20/2007

Free 'Writing Quality Code' e-book (with information on both Native and Managed Code Analysis)

Some of the local Australian developers have got together and written a e-book on Writing Quality...

Author: davkean Date: 02/07/2007

Code Analysis (Team System) Chat This Wed

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

Author: davkean Date: 02/05/2007

What resolutions or warnings need to provide more information?

One of things that we are doing for Orcas, is to basically do what we call a resolution scrub. This...

Author: davkean Date: 02/03/2007

How to Design Exception Hierarchies

Krzysztof Cwalina, owner of the Framework Design Guidelines, has written a great post on designing...

Author: davkean Date: 02/01/2007

TIP: Scope the Code Analysis Policy to apply to specific source control paths/file types

On the forums, we have had posts from customers who want to customize their code analysis policy to...

Author: ravkaur Date: 01/30/2007

FAQ: When looking at the names of locals in a custom rule, why do I see strange names such as 'CS$1$0000' and 'VB$1$0000'?

Previously we showed you how to access the locals or variables of a method. Once you started to run...

Author: davkean Date: 01/26/2007

Free sample book chapter on Managed Code Analysis

SearchVB.com is offering a free sample chapter on Managed Code Analysis from the book Professional...

Author: davkean Date: 01/24/2007

FAQ: What exception should I throw instead of the reserved exceptions that DoNotRaiseReservedExceptionTypes warns against?

Throwing a general exception type such as System.Exception or System.SystemException in a library or...

Author: davkean Date: 01/22/2007

TIP: Automatically generate Managed Code Analysis/FxCop suppressions

I see a lot of users attempting to hand code a SuppressMessageAttribute themselves. This can be...

Author: davkean Date: 01/18/2007

FAQ: How do I fix a violation of MovePInvokesToNativeMethodsClass?

MovePInvokesToNativeMethodsClass fires on P/Invokes (ie methods marked with DllImport) that are not...

Author: davkean Date: 01/14/2007

January Orcas CTP Released!

Update: A Virtual PC image is also available. We've just released the Visual Studio 'Orcas' -...

Author: davkean Date: 01/12/2007

Do yourself a favor; install Visual Studio SP1 now

While this may be old news to some, we've had a few reports recently of bugs that were already fixed...

Author: davkean Date: 01/10/2007

And now back to your regularly scheduled FxCop documentation...

As a lot of you noticed, just before Christmas all of our rule documentation links broke from within...

Author: davkean Date: 01/06/2007

Running FxCop over ASP.NET 2.0 Web Sites

Mads Kristensen has posted an easy solution to the problem of running FxCop over ASP.NET 2.0 web...

Author: davkean Date: 12/29/2006

FAQ: What is the GlobalSuppressions.cs/GlobalSuppressions.vb file and why is it needed? Is it possible to change the name of this file? [David Kean]

I've noticed that Code Analysis sometimes places suppressions in a file called GlobalSuppression.cs...

Author: davkean Date: 12/28/2006

A couple of new Orcas features for Managed Code Analysis [David Kean]

Yesterday our team, Code Analysis, checked-in the last of our scheduled feature work for the next...

Author: davkean Date: 12/21/2006

FxCop (Team System) Chat Tomorrow

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

Author: davkean Date: 12/06/2006

FAQ: How do I share Managed Code Analysis rule settings over multiple projects? [David Kean]

If your team has a minbar of Managed Code Analysis rules that must be explicitly fixed or...

Author: davkean Date: 11/16/2006

FxCop (Team System) Chat Tomorrow

Update: The transcript for this chat can be found here. Join members of the Visual Studio Team...

Author: davkean Date: 11/07/2006

How would you rate the usefulness of this content? [David Kean]

At Microsoft, we have a number of internal tools and websites that help improve our interaction with...

Author: davkean Date: 10/26/2006

Visual Studio 2005 SP1 Bug Fixes

Following Brian Harry's lead and transparency, below is list of Managed Code Analysis fixes that...

Author: davkean Date: 10/13/2006

FxCop (Team System) MSDN Chat Roundup

Update: The transcript for this chat can be found here. Once again we had another really successful...

Author: davkean Date: 10/12/2006

FxCop (Team System) MSDN Chat

Come and join members from the Visual Studio Team System product group to discuss features available...

Author: davkean Date: 09/29/2006

FxCop (Team System) MSDN Chat Roundup

Update: The transcript for this chat can be found here. Yesterday we had a really successful Team...

Author: davkean Date: 09/07/2006

FxCop (Team System) MSDN Chat

Update: The transcript for this chat can be found here. Come and join members from the Visual Studio...

Author: davkean Date: 08/31/2006

TIP: How to quickly enable Code Analysis on multiple projects [David Kean]

Daniel Fisher has posted a entry on using a macro to quickly enable Code Analysis on multiple...

Author: davkean Date: 08/11/2006

TIP: How to change the FxCop naming/design rules to fire on internals [David Kean]

By default, the FxCop naming and design rules only fire on publicly visible types and members. There...

Author: davkean Date: 08/08/2006

FAQ: Why is FxCop 1.32 not available for download? [David Kean]

Update: While SharePoint Portal Server 2003 will not run side-by-side with .NET 2.0, SharePoint...

Author: davkean Date: 07/11/2006

FxCop 1.35 rule documentation now on MSDN Wiki [David Kean]

One thing you might notice from today when you fire up FxCop 1.35, is that the rule URLs are now...

Author: davkean Date: 06/29/2006

FxCop 1.35 Released!

We are pleased to announce the release of FxCop 1.35. Please visit...

Author: davkean Date: 06/23/2006

FAQ: Why does FxCop warn against catch(Exception)? - Part 2 [Nick Guerrera]

This is the second installment in a three-part series on why FxCop warns against...

Author: MSDN Archive Date: 06/18/2006

FAQ: Why does FxCop warn against catch(Exception)? - Part 1 [Nick Guerrera]

This is the first installment in a three-part series on why FxCop warns against...

Author: MSDN Archive Date: 06/15/2006

TIP: Get more information about a rule/warning within Visual Studio [David Kean]

Did you know you can get more information about a particular rule/warning within Visual Studio;...

Author: davkean Date: 06/13/2006

FAQ: Can I create custom rules that target both Visual Studio and FxCop? [David Kean]

I have users using both Visual Studio and FxCop, and I want to create custom rules that run on both....

Author: davkean Date: 06/01/2006

Making it easier to move from FxCop to Visual Studio Code Analysis [Jeffrey van Gogh]

We get frequently asked what the best way is for people to move from the standalone FxCop to VS Code...

Author: Jeffrey van Gogh - MS Date: 05/20/2006

FAQ: How do I increase the number of Code Analysis warnings displayed in the Error List? [David Kean]

When first running Visual Studio Code Analysis over a large project, you may encounter the following...

Author: davkean Date: 05/04/2006

FAQ: Why does DoNotExposeGenericLists recommend that I expose Collection instead of List? [David Kean]

DoNotExposeGenericLists fires when I publicly expose List<T> via a field, method, property, or...

Author: davkean Date: 04/27/2006

FxCop Chat - This Wed @ 10 AM

Update: The transcript for this chat can be found here. Join the chat on April 19th, 2006 10:00am -...

Author: davkean Date: 04/17/2006

FAQ: Why do some sources recommend extending ApplicationException while FxCop does not? [Michael Fanning, David Kean]

TypesShouldNotExtendCertainBaseTypes fires on types that derive from ApplicationException and...

Author: davkean Date: 04/05/2006

FAQ: How do I indicate to DoNotDeclareReadOnlyMutableReferenceTypes that a type is immutable? [David Kean]

DoNotDeclareReadOnlyMutableReferenceTypes is a rule that checks for visible read-only fields that...

Author: davkean Date: 04/04/2006

FxCop 1.35 RC1 online

Last week we had a push to fix many of the issues reported on the forum and include them in the...

Author: Jeffrey van Gogh - MS Date: 04/04/2006

FAQ: Why does FxCop ignore my in-code (SuppressMessageAttribute) suppressions? [David Kean]

FxCop 1.35 brings with it the ability to suppress messages in code via the use of the...

Author: davkean Date: 03/23/2006

Visual Studio Team System MSDN Chat (This Wed - 10AM PST/1PM EST)

Our team, Team System Developer and Tester Tools (Unit Testing, Web Testing, Load Testing,...

Author: davkean Date: 03/14/2006

<Previous Next>