Try the Code Analysis Rule Sets Feature in the November "Rosario" November 2007 CTP- November 28, 2007 We have a great new feature that we are previewing in Microsoft&174; Visual Studio&174; Team System code name &8220;Rosario&8221; November 2007 CTP.&160; This feature allows you to select pre-defined sets of rules to configure code analysis as well as define your own.&160; To access this feature right click on a project and choose "Properties" then click on the "Code Analysis" tab. This feature is in response to the feedback we received that the number of rules is...http://blogs.msdn.com/fxcop/archive/2007/11/28/try-the-code-analysis-rule-sets-feature-in-... Positioning Code Metrics to Management- November 28, 2007 Another question that is coming up is: How can (or should) code metrics be presented to management My view is that in all cases the metrics are something that can help make decisions around focus and prioritization. Management should be made aware of the metrics and what they mean to allow them to decide where to focus resources. If management is more levels away from the code then the Maintainability index can serve as a good, simple, metric. Sometimes you may ship code that has low...http://blogs.msdn.com/fxcop/archive/2007/11/28/positioning-code-metrics-to-management.aspx Maintainability Index Range and Meaning- November 20, 2007 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 (based on the work in Carnegie Mellon University although we modified the Halstead Volume calculation a little since we don't include comments anywhere in our calculation): Maintainability Index = 171 - 5.2 ln(Halstead Volume) - 0.23 (Cyclomatic Complexity) - 16.2 ln(Lines of Code) This meant that it ranged from 171 to an...http://blogs.msdn.com/fxcop/archive/2007/11/20/maintainability-index-range-and-meaning.asp... Code Metrics as Check-in Policy- November 16, 2007 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 Index, Class Coupling, Depth of Inheritance and Complexity metrics are all available as rules in Code Analysis in Visual Studio. This means you can use code analysis check-in policy enabled with those...http://blogs.msdn.com/fxcop/archive/2007/11/15/code-metrics-as-check-in-policy.aspx Code Metrics Customization- November 15, 2007 A number of people have asked: Is there a way to customize the existing code metrics or add additional ones The simple answer at this time is No.&xA0; There are no extension points or customizations available at this time for code metrics.&xA0; This feature was added late in the cycle for VS 2008 and we were out of time to design and add the required hooks. We will use this release to gather feedback about the sorts of extensions you want.&xA0; To that end please feel free to respond to...http://blogs.msdn.com/fxcop/archive/2007/11/15/code-metrics-customization.aspx |