Measuring Complexity and Maintainability of Managed Code

Note

This article applies to Visual Studio 2015. If you're looking for Visual Studio 2017 documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2017. Download it here.

The latest version of this topic can be found at Measuring Complexity and Maintainability of Managed Code.

The increased complexity of modern software applications also increases the difficulty of making the code reliable and maintainable. In recent years, many software measures, known as code metrics, have been developed that can help developers understand where their code needs rework or increased testing.

Developers can use Visual Studio Application Lifecycle Management to generate code metrics data that measure the complexity and maintainability of their managed code. Code metrics data can be generated for an entire solution or a single project.

This section describes how to generate and use code metrics in Visual Studio.

In This Section

Code Metrics Values

How to: Generate Code Metrics Data

Working with Code Metrics Data

How to: Copy Code Metrics Results to the Clipboard

How to: Export Code Metric Results to Excel

How to: Create a Work Item Based on a Result

See Also

Troubleshooting Code Metrics Issues
Performing Common Development Tasks