Another successful Team System chat with over 150+ questions asked. Thank-you to everyone that attended.
The following is a list of Code Analysis questions that were asked:
Q: any ETA for a FxCop SDK ?
A: I assume you mean a supported, documented and stable API? Unfortunately, there is no currently plan in the Orcas timeframe to make this a supported scenario; it will remain an off-road experience. Is this something you see as important? What kind of rules do you write?
Q: re q: well.. I just started looking into it.. but due to the lack of information it seems like way more work than it should be to create something but the simplest rules.. One rule that comes to mind is to check event raising function that they surrounded with a try-catch.
A: We do plan on releasing more guidance, samples and whitepapers around this in the future. Until then, feel free to stop by on the FxCop forum (http://forums.microsoft.com/msdn/showforum.aspx?forumid=98&siteid=1). Also check-out the regularly updated FxCop blog (http://blogs.msdn.com/fxcop) and keep a watch out for a Code Analysis Developer Center in the future.
Q: For Code Analysis, will future releases have more rules included? For example, I think there are items in Framework Design Guidelines that are not currently checked that we would love to see (without doing it ourselves ;)?
A: Of course, we have some great new analysis coming on board. You will see more analysis around Exception throwing (especially those covered in the following post: http://blogs.msdn.com/fxcop/archive/2007/02/01/how-to-design-exception-hierarchies.aspx), and naming (see http://blogs.msdn.com/fxcop/archive/2007/01/12/january-orcas-ctp-released.aspx). We will also be adding more maintainability rules. We also have a completely new feature coming on board, unfortunately, it's too early to talk about it, but keep an eye out on the FxCop blog and the next CTP.
Q: For code analysis is there a mechanism in Orcas to declare parts of code off limits (such as generated partial classes)? You'll have to excuse me I have not looked to see about that in the CTP yet.
A: We've added an entire feature around generated code (see http://blogs.msdn.com/fxcop/archive/2006/12/21/two-new-features-for-orcas.aspx). You will be able to globally turn off analysis around all generated code (indicated by the GeneratedCodeAttribute), or if you want to analysis generated code, you will be able to choose to suppress these warnings globally so that they don't get blown away when the file gets regenerated. Check it out in the latest CTP and tell us what you think!