Sign in
Code Analysis Team Blog
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Tags
ASP.NET
Books
Bugs
C++
Code Analysis
Code Analysis Policy
Code Metrics
CodeCommunit Analysis
Community
Configuration
Custom Rules
Documentation
Exceptions
FAQ
Framework Design Guidelines
FxCop
Releases
Rules
Suppressions
Team System
Tips and Tricks
Tools
tsbt-dev
Visual Studio 2005
Visual Studio 2008
Archive
Archives
March 2012
(1)
April 2011
(1)
July 2010
(1)
April 2010
(1)
March 2010
(3)
November 2008
(1)
August 2008
(2)
June 2008
(1)
February 2008
(3)
January 2008
(4)
December 2007
(1)
November 2007
(5)
October 2007
(2)
September 2007
(3)
August 2007
(4)
July 2007
(5)
May 2007
(7)
April 2007
(3)
March 2007
(2)
February 2007
(8)
January 2007
(9)
December 2006
(4)
November 2006
(2)
October 2006
(3)
September 2006
(2)
August 2006
(3)
July 2006
(1)
June 2006
(6)
May 2006
(3)
April 2006
(7)
March 2006
(3)
June 2004
(2)
May 2004
(2)
April 2004
(1)
March 2004
(3)
February 2004
(2)
January 2004
(4)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Code Analysis Team Blog
What’s new in Code Analysis for Visual Studio 2010
Posted
over 3 years ago
by
Duke Kamstra
15
Comments
This post summarizes the new functionality you will experience sing the Code Analysis functionality in Visual Studio 2010. Note that Code Analysis is only available in the Premium and Ultimate editions of Visual Studio 2010. Rule Sets In Visual Studio...
Code Analysis Team Blog
How to write custom static code analysis rules and integrate them into Visual Studio 2010
Posted
over 3 years ago
by
Duke Kamstra
5
Comments
This blog explains how to implement your own static code analysis rules for analyzing your .NET (C#, VB.NET, etc) code. The material was written by Todd King, one of the developers on the Visual Studio Code Analysis team. NOTE: Writing custom FxCop...
Code Analysis Team Blog
FAQ: Which Code Analysis rules shipped in which version?
Posted
over 5 years ago
by
David M. Kean
11
Comments
In response to a lot of recent requests, we've put together a complete list of rules that shipped in the different versions of Visual Studio Code Analysis and FxCop. Attached is an Excel worksheet providing this information for Visual Studio 2005, Visual...
Code Analysis Team Blog
FAQ: How do I run FxCop during a post-build event?
Posted
over 6 years ago
by
David M. Kean
3
Comments
A little known feature of FxCop (in particular FxCopCmd.exe) is its ability to be integrated into the build process within Visual Studio. Although not a replacement for the Code Analysis functionality available within both Visual Studio Team Edition for...
Code Analysis Team Blog
Tutorial on writing your own Code Analysis rule
Posted
over 5 years ago
by
David M. Kean
4
Comments
Jason Kresowaty has posted a great tutorial on writing Code Analysis/FxCop rules . He also spends time on explaining parts of the Introspection API, including the different nodes and their relationship to each other. It's a great read, even if you...
Code Analysis Team Blog
FAQ: How do I prevent FxCop 1.36 from firing warnings against generated code?
Posted
over 5 years ago
by
David M. Kean
6
Comments
I've upgraded from FxCop 1.35 to 1.36 and now FxCop has started to fire warnings against typed DataSets and other generated code. How do I turn this off? The reason this is occurring is because we changed the way that FxCop analyzed generated code. Whereas...
Code Analysis Team Blog
Comparison of Code Analysis Warnings and Errors - Visual Studio 2008 versus Visual Studio 2010
Posted
over 3 years ago
by
Duke Kamstra
2
Comments
This blog compares the Code Analysis warnings and errors generated by Visual Studio 2008 and Visual Studio 2010. Managed Code Analysis Warning / Error Number Description Visual Studio 2008 Team System Visual Studio 2010 Premium CA0001 An...
Code Analysis Team Blog
New for Visual Studio 2008 - Support for anonymous methods and lambda expressions
Posted
over 6 years ago
by
David M. Kean
13
Comments
One of my favorite new features for Code Analysis in Visual Studio 2008 is our support for analyzing anonymous methods and lambda expressions. While anonymous methods have been around in C# since Visual Studio 2005, lambda expressions are new for both...
Code Analysis Team Blog
New for Visual Studio 2008 - Code Metrics
Posted
over 6 years ago
by
David M. Kean
39
Comments
While we've already briefly spoken about Code Metrics when we announced it , I thought I would discuss it in a little more depth, in particular the metrics it provides. As mentioned previously, Code Metrics is a new tool window that helps users find...
Code Analysis Team Blog
Announcing Visual Studio Code Metrics!
Posted
over 6 years ago
by
David M. Kean
57
Comments
Announcing the new Code Metrics feature for Visual Studio ‘Orcas’! Available in Visual Studio Team Developer and Team Suite, this new feature allows users to generate code metrics for projects and solutions and displays the results in the Code Metrics...
Code Analysis Team Blog
FAQ: Why does DoNotExposeGenericLists recommend that I expose Collection<T> instead of List<T>? [David Kean]
Posted
over 7 years ago
by
David M. Kean
3
Comments
DoNotExposeGenericLists fires when I publicly expose List<T> via a field, method, property, or parameter. Why? Although Krzysztof briefly touched on this last year , we wanted to expand on this a little through the use of examples. The first...
Code Analysis Team Blog
FxCop 1.36 Released!
Posted
over 5 years ago
by
brettwo
11
Comments
We are pleased to announce that we've released the next version of FxCop . This release has a number of changes since FxCop 1.36 Beta 2, including, but not limited to, the following: Bug fixes that reduce noise, missing analysis and rule crashes...
Code Analysis Team Blog
FxCop 10.0 is available
Posted
over 3 years ago
by
Duke Kamstra
11
Comments
Version 10.0 of FxCop is the version that ships with Visual Studio 2010 Premium. FxCop 10.0 is part of Version 7.1 of the Microsoft Windows SDK for Windows 7 and .NET Framework 4. Instructions Download the Microsoft Windows SDK for Windows 7 and .NET...
Code Analysis Team Blog
Maintainability Index Range and Meaning
Posted
over 6 years ago
by
conorm
17
Comments
Another question: The maintainability index has been re-set to lie between 0 and 100. How and why was this done? The metric originally was calculated as follows: Maintainability Index = 171 - 5.2 * ln(Halstead Volume) - 0.23 * (Cyclomatic Complexity...
Code Analysis Team Blog
FxCop 1.36 Beta Released!
Posted
over 6 years ago
by
David M. Kean
22
Comments
I'm pleased to announce that we've released a beta of the next version of FxCop . This release has a number of changes since FxCop 1.35, including, but not limited to, the following: 200+ bug fixes that reduce noise, missing analysis and rule crashes...
Code Analysis Team Blog
What rules do Microsoft have turned on internally?
Posted
over 6 years ago
by
David M. Kean
22
Comments
I've recently received a few requests asking about the Code Analysis rules we run internally against Microsoft's own code. While it might come as a surprise, we do not actually run every single rule against our own binaries. There are many reasons for...
Code Analysis Team Blog
New for Visual Studio 2008 - Custom Dictionaries
Posted
over 6 years ago
by
David M. Kean
11
Comments
Once you turn on the new spelling rules that we've added to Visual Studio 2008, you will want to start to customize the words that it fires on; this is where the new custom dictionary support comes in. A custom dictionary in its basic form, similar to...
Code Analysis Team Blog
FAQ: Why does FxCop warn against catch(Exception)? - Part 1 [Nick Guerrera]
Posted
over 7 years ago
by
MSDNArchive
26
Comments
This is the first installment in a three-part series on why FxCop warns against catch(Exception): FAQ: Why does FxCop warn against catch(Exception)? - Part 1 FAQ: Why does FxCop warn against catch(Exception)? - Part 2 FAQ: Why does FxCop warn against...
Code Analysis Team Blog
FAQ: How do I integrate custom rules with Visual Studio? [David Kean]
Posted
over 7 years ago
by
David M. Kean
17
Comments
Update: To have rules target both Visual Studio and FxCop, see the following entry: FAQ: Can I create custom rules that target both Visual Studio and FxCop? Although not officially supported or documented, the Managed Code Analysis (FxCop) feature...
Code Analysis Team Blog
What’s New in Code Analysis for Visual Studio 2012
Posted
over 1 year ago
by
Vince Smith [MSFT]
15
Comments
Hi Everyone, With the launch of the Beta we would like to tell you about some of the great enhancements we have made to code analysis based on your feedback. Back when we started planning for Visual Studio 2012 we spent a good deal of time talking...
Code Analysis Team Blog
FAQ: Why does FxCop ignore my in-code (SuppressMessageAttribute) suppressions? [David Kean]
Posted
over 7 years ago
by
David M. Kean
2
Comments
FxCop 1.35 brings with it the ability to suppress messages in code via the use of the SuppressMessage attribute. This allows you to do the following: public class PublicKey { private byte [] _Token; [...] [SuppressMessage( "Microsoft.Performance" ...
Code Analysis Team Blog
What's In The New Version Of FxCop [Michael Fanning]
Posted
over 9 years ago
by
MSDNArchive
36
Comments
As mentioned in previous blog and bulletin board posts, we’re in the final weeks of testing a new update to FxCop. This is a very significant update and I thought I’d post some information on what to expect in the release. No more locks...
Code Analysis Team Blog
FxCop 1.35 now available (again) for download
Posted
over 5 years ago
by
David M. Kean
12
Comments
We've just uploaded FxCop 1.35 to MSDN Code Gallery after we lost our home on GotDotNet - this is for those teams that either do not want to or just aren't ready to upgrade to FxCop 1.36 Beta . For those that are already using FxCop 1.35, you'll probably...
Code Analysis Team Blog
Writing Custom Rules in FxCop &amp; FxCop Visual Studio Integration [Jeffrey van Gogh]
Posted
over 9 years ago
by
MSDNArchive
4
Comments
Two common questions we often get are: Can I write my own rules for FxCop and customize existing rules? Can I integrate FxCop into visual studio and can I jump to the location in my source of the item that FxCop flags as an error? That's why...
Code Analysis Team Blog
FxCop 1.35 Released!
Posted
over 7 years ago
by
David M. Kean
13
Comments
We are pleased to announce the release of FxCop 1.35. Please visit http://www.gotdotnet.com/team/fxcop to download it. Changes since FxCop 1.32: FxCop now only runs on .NET Framework 2.0, however, it supports analyzing all versions of .NET...
Page 1 of 5 (114 items)
1
2
3
4
5