Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Development Edition
 Avoid unmaintainable code
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Studio Team System
Avoid unmaintainable code

TypeName

AvoidUnmantainableCode

CheckId

CA1505

Category

Microsoft.Maintainability

Breaking Change

Non Breaking

A type or method has a low maintainability index value.

The maintainability index is calculated by using the following metrics: lines of code, program volume, and cyclomatic complexity. Cyclomatic complexity is a measure of the structural complexity of the type or method.

A low maintainability index indicates that a type or method is probably difficult to maintain and would be a good candidate to redesign.

To fix this violation, redesign the type or method and try splitting it into smaller more focused types or methods.

Exclude this warning when a type or method is still considered maintainable despite its large size or when the type or method cannot be split up for some reason.

Other Resources

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker