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
TIP: Automatically generate Managed Code Analysis/FxCop suppressions
Posted
over 6 years ago
by
David M. Kean
1
Comments
I see a lot of users attempting to hand code a SuppressMessageAttribute themselves. This can be error prone and is not needed when both Visual Studio and the standalone FxCop can automatically generate these for you. In Visual Studio 2005 Right...
Code Analysis Team Blog
$(CodeAnalysisTreatWarningsAsErrors) MSBuild property
Posted
over 6 years ago
by
David M. Kean
2
Comments
For Visual Studio 2008, we have added a new MSBuild property that allows you to easily treat all Code Analysis warnings as build errors. This can be useful for example, if you want to force that any firing of a Code Analysis rule to break the build during...
Code Analysis Team Blog
TIP: How to change the FxCop naming/design rules to fire on internals [David Kean]
Posted
over 7 years ago
by
David M. Kean
4
Comments
By default, the FxCop naming and design rules only fire on publicly visible types and members. There are a couple reasons for this: The .NET Framework Design Guidelines , which FxCop enforces, only contains guidelines for publicly visible API. What...
Code Analysis Team Blog
Framework for intergrated FxCop rule testing
Posted
over 6 years ago
by
David M. Kean
6
Comments
Roy Osherove has put together a Framework for testing FxCop rules . It's an interesting approach, firing up the FxCop engine for each rule that he wants to test. There are few things that I would like to see it support: The ability to specify...
Code Analysis Team Blog
TIP: How to quickly enable Code Analysis on multiple projects [David Kean]
Posted
over 7 years ago
by
David M. Kean
0
Comments
Daniel Fisher has posted a entry on using a macro to quickly enable Code Analysis on multiple projects . The macro also allows you to apply the same rule selections across an entire solution. Thanks Daniel!
Code Analysis Team Blog
Free 'Writing Quality Code' e-book (with information on both Native and Managed Code Analysis)
Posted
over 6 years ago
by
David M. Kean
10
Comments
Some of the local Australian developers have got together and written a e-book on Writing Quality Code with Visual Studio Team System. It contains chapters on both Native and Managed Code Analysis, as well unit and web testing, performance-tuning and...
Code Analysis Team Blog
TIP: Get more information about a rule/warning within Visual Studio [David Kean]
Posted
over 7 years ago
by
David M. Kean
3
Comments
Did you know you can get more information about a particular rule/warning within Visual Studio; including its description, information on how to fix it, whether or not it is considered a breaking change, when or when not to suppress it and code samples...
Code Analysis Team Blog
January Orcas CTP Released!
Posted
over 6 years ago
by
David M. Kean
9
Comments
Update: A Virtual PC image is also available. We've just released the Visual Studio 'Orcas' - January CTP . This is the first of the side-by-side installable CTPs, however, before installing, please read the Release Notes and do not install this on...
Code Analysis Team Blog
TIP: Scope the Code Analysis Policy to apply to specific source control paths/file types
Posted
over 6 years ago
by
ravkaur
1
Comments
On the forums, we have had posts from customers who want to customize their code analysis policy to skip certain file types such as .sql, docs etc. This is because the policy will block checkins even though code analysis doesn’t apply to those files....
Code Analysis Team Blog
FAQ: Why is file and line information available for some warnings in FxCop but not for others?
Posted
over 6 years ago
by
David M. Kean
1
Comments
It appears that sometimes FxCop displays a link to the source line and file in the Message Details window and sometimes it doesn't. Why this inconsistent behavior? There are three usual reasons why this occurs: Source lookup is disabled. To turn...
Code Analysis Team Blog
Code Analysis (Team System) Chat Roundup
Posted
over 6 years ago
by
David M. Kean
2
Comments
We had two great chats last Friday . Thank-you to all that attended, I had a lot of fun. The following is a list of Code Analysis questions that were asked: Code Metrics DavidKean_MS (Moderator): Q: JeffBe: I'm very interested in the code...
Code Analysis Team Blog
How to Design Exception Hierarchies
Posted
over 6 years ago
by
David M. Kean
0
Comments
Krzysztof Cwalina, owner of the Framework Design Guidelines , has written a great post on designing exception hierarchies . He gives a great overview on the different categories of exceptions, which are placed under two main buckets he calls usage and...
Code Analysis Team Blog
FAQ: How do I get the SourceContext for a local?
Posted
over 6 years ago
by
David M. Kean
5
Comments
I want to fire on the naming of a local, however, whenever I pass the local to the Problem constructor, the source information for the method is always used. How do I get FxCop/Code Analysis to use the source information for the local instead? Because...
Code Analysis Team Blog
Free sample book chapter on Managed Code Analysis
Posted
over 6 years ago
by
David M. Kean
1
Comments
SearchVB.com is offering a free sample chapter on Managed Code Analysis from the book Professional Visual Studio Team System (co-written by fellow Team System colleague Noah Coad ). Chapter 8, Managed Code Analysis, focuses on how to use Team System...
Code Analysis Team Blog
What resolutions or warnings need to provide more information?
Posted
over 6 years ago
by
David M. Kean
9
Comments
One of things that we are doing for Orcas, is to basically do what we call a resolution scrub . This is where we print out every single possible resolution/warning and read over them to check for consistency, proper grammer and to see if they provide...
Code Analysis Team Blog
TIP: How to change the (Orcas) Managed Code Analysis naming/design rules to fire on internals
Posted
over 6 years ago
by
David M. Kean
1
Comments
A while ago I mentioned that FxCop (and hence Managed Code Analysis) naming and design rules only fire on publicly visible types and members. As you may recall, there were a couple of reason for this: The .NET Framework Design Guidelines , which...
Code Analysis Team Blog
What kind of custom rules do you want to write?
Posted
over 6 years ago
by
David M. Kean
8
Comments
Our excellent program manager, Joe Rohde, is trying to gather information on the kinds of custom rules customers want to write. I am a program manager for our Code Analysis system. I want to know what kind of custom rules you would like to write...
Code Analysis Team Blog
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'?
Posted
over 6 years ago
by
David M. Kean
0
Comments
Previously we showed you how to access the locals or variables of a method. Once you started to run your rule over an assembly, you might start to notice strange locals with names that start with 'CS$' and 'VB$'. These are compiler generated locals that...
Code Analysis Team Blog
Krzysztof Cwalina on Framework Design Guidelines and API Design
Posted
over 6 years ago
by
David M. Kean
A lecture on API design by Krzysztof Cwalina (the brains behind the Framewok Design Guidelines ) has been posted on the Research Channel . This class presents best practices for designing frameworks that are reusable object-oriented libraries. The...
Code Analysis Team Blog
Dealing with a Code Analysis backlog?
Posted
over 6 years ago
by
David M. Kean
1
Comments
Nicole Calinoiu has started a (what I hope to be long) series on introducing Code Analysis (FxCop in particular) to your team. Her first couple of posts are absolute rippers , check them out: FxCop and the big, bad backlog FxCop backlogs: Some rules...
Code Analysis Team Blog
FxCop (Team System) MSDN Chat Roundup
Posted
over 7 years ago
by
David M. Kean
0
Comments
Update: The transcript for this chat can be found here . Once again we had another really successful chat with over 320 customers attending. Thank you to all that attended, you asked some really good questions. The following is a list of questions...
Code Analysis Team Blog
FxCop (Team System) MSDN Chat Roundup
Posted
over 7 years ago
by
David M. Kean
0
Comments
Update: The transcript for this chat can be found here . Yesterday we had a really successful Team System chat with over 150 customers (including 7 MVPs). Thank you to all that attended, it is really great to be able to speak to customers directly...
Code Analysis Team Blog
We have a new forum!
Posted
over 6 years ago
by
David M. Kean
2
Comments
Well...okay, I lied, it's actually the same great forum as before, it's just been renamed. Visual Studio Code Analysis and Code Metrics Discuss issues regarding Visual Studio's Code Analysis features, including both Managed and C/C++ Code Analysis...
Code Analysis Team Blog
Do yourself a favor; install Visual Studio SP1 now
Posted
over 6 years ago
by
David M. Kean
2
Comments
While this may be old news to some, we've had a few reports recently of bugs that were already fixed in Visual Studio Service Pack 1 , so it appears that not everyone is running it. We fixed over 30+ bugs ourselves in Managed Code Analysis, so if you...
Code Analysis Team Blog
FxCop Designers Honored with the Engineering Excellence Chairman's Award
Posted
over 6 years ago
by
David M. Kean
1
Comments
Mike Fanning, Krzysztof Cwalina , and Brad Abrams were awarded with the Engineering Excellence Chairman's Award for the design of FxCop, which is given for contributions that Bill Gates considers extremely important: The Engineering Excellence Chairman...
Page 4 of 5 (114 items)
1
2
3
4
5