Browse by Tags

Tagged Content List
  • Blog Post: Fun with Code Analysis Rule Sets

    Two weeks ago, I introduced you to Visual Studio 2010 September '08 CTP (Community Technology Preview). This CTP is available as a Virtual PC (VPC) image which can be downloaded at http://go.microsoft.com/fwlink/?LinkId=129231 . The goal of the Community Technology Preview is to obtain feedback from...
  • Blog Post: 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 FxCop 1.36. New for Visual Studio 2008 SP1 and FxCop 1.36 – Multi-targeting rule
  • Blog Post: 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 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 previously in 1.35, FxCop would only ignore...
  • Blog Post: Tutorial on writing your own Code Analysis rule

    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've written some Code Analysis rules before. Definitely...
  • Blog Post: 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 Design Guidelines and are looking for feedback on what they should put in it. For those that don't know, a lot of our Code Analysis rules are based on the writings in this great book, so expect to see...
  • Blog Post: 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 the different versions of Visual Studio Code Analysis and FxCop. Attached is an Excel worksheet providing this information for Visual Studio 2005, Visual Studio 2008, FxCop 1.35 and FxCop 1.36 Beta. ...
  • Blog Post: Reporting Code Analysis Defect Counts

    Code analysis defect counts are available in the cube that is part of the TFS Data Warehouse . This post shows you how to hook up Excel to show code analysis counts in a pivot table . First off you need to connect Excel up to the data warehouse that has the data. Under the Data tab in Excel select From...
  • Blog Post: Come chat with the Code Analysis team tomorrow

    Join members of the Visual Studio Team System product group to discuss features available in Team Foundation Server, Team Suite, Architecture Edition, Development Edition, Database Edition, and Test Edition. In addition, discuss what's new for these editions for Visual Studio 2008. We will be holding...
  • Blog Post: 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 System code name “Rosario” November 2007 CTP .  This feature allows you to select pre-defined sets of rules to configure code analysis as well as define your own.  To access this feature...
  • Blog Post: Maintainability Index Range and Meaning

    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) - 16.2 * ln(Lines of Code) This meant that...
  • Blog Post: 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. One question that is coming up is: Can a check-in policy be defined based on code metrics in TFS? Well, code metrics itself does not have a check-in policy but fortunately the Maintainability...
  • Blog Post: 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 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 Support for analyzing anonymous methods and lambda...
  • Blog Post: 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 Studio 2008, I thought I would briefly mention some of the changes to it that were made between Beta 2 and RTM. For those that have yet to see this menu, similar to the existing Test menu, we've added a...
  • Blog Post: 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 anonymous methods and lambda expressions. While anonymous methods have been around in C# since Visual Studio 2005, lambda expressions are new for both C# and Visual Basic in Visual Studio 2008. For...
  • Blog Post: 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 ability to enforce that Code Analysis be run before every check-in. Called a Code Analysis Policy , this feature allows your team to find and fix Code Analysis warnings earlier in the product cycle rather...
  • Blog Post: 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 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 the concept in Microsoft Word, allows you to silence...
  • Blog Post: New for Visual Studio 2008 - Spelling rules

    Surprisingly, one the biggest requests for Code Analysis in Visual Studio 2005 was to include the spelling rules that shipped with the FxCop standalone. We had Microsoft consultants tell us that they actually had trouble moving some customers from FxCop to Code Analysis because they were not included...
  • Blog Post: 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 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 this: Applicability . Not every rule is applicable...
  • Blog Post: $(CodeAnalysisTreatWarningsAsErrors) MSBuild property

    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 a nightly Team Build without needing to individually...
  • Blog Post: 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 Studio Team Foundation Server, Architecture Edition, Development Edition, Database Edition, and Test Edition. In addition, discuss what's new in Visual Studio 2008 Beta 2 . We will be holding two sessions...
  • Blog Post: Code Analysis FAQ

    Find answers to commonly asked questions about Visual Studio Code Analysis. General FAQ: Why is FxCop 1.32 not available for download? FAQ: Why does FxCop generate violations against itself? Analysis and Rules FAQ: Why is file and line information available for some warnings in FxCop but...
  • Blog Post: FxCop Designers Honored with the Engineering Excellence Chairman's Award

    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's Award is Microsoft's highest award for engineering...
  • Blog Post: 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 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. Ignore what you may or may not know about what's...
  • Blog Post: 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 Studio Team Foundation Server, Team Editions for Architects, Developers, Database Pros, and Testers. In addition, discuss what's new in the upcoming Orcas CTP. We will be holding two sessions: Join...
  • Blog Post: 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 behaving in a particular manner. Debugging within FxCop Debugging a custom rule within the FxCop UI is actually quite easy. To do so, simply: Open the FxCop project that contains your custom...
Page 1 of 4 (95 items) 1234