Analyzing Application Quality by Using Code Analysis Tools


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.

In This Section
Analyzing Managed Code Quality
Visual Studio code analysis for managed code provides information about managed assemblies, such as violations of the programming and design rules set forth in the Microsoft .NET Framework Design Guidelines. Warning messages identify any relevant programming and design issues and, when it is possible, supply information about how to fix the problem.

Analyzing C/C++ Code Quality by Using Code Analysis
The C/C++ Code Analysis tool provides information to developers about possible defects in their C/C++ source code. Common coding errors reported by the tool include buffer overruns, un-initialized memory, null pointer dereferences, and memory and resource leaks.

Using Rule Sets to Group Code Analysis Rules
Select and create rule sets to apply to your project.

Code Analysis Application Errors
Fix errors in the code analysis functionality.

Enhancing Code Quality with Team Project Check-in Policies
When you use Team Foundation Version Control (TFVC), you can create check-in policies for your team projects that enforce practices that lead to better code and more efficient group development. Check-in policies are rules that are set at the team project level and enforced on developer computers before code is allowed to be checked in.

Code Analysis for Drivers

Code analysis tools can help improve the stability and reliability of your driver by systematically analyzing the driver source code.

Analyzing Driver Quality by Using Code Analysis Tools
Code Analysis for Drivers is a compile-time static verification tool that detects basic coding errors in C and C++ programs and includes a specialized module that is designed to detect errors in (primarily) kernel-mode driver code.. Static Driver Verifier (SDV) is a static verification tool that systematically analyzes the source code of Windows kernel-mode drivers. SDV determines whether the driver correctly interacts with the Windows operating system kernel.

Code Analysis for Drivers Warnings
Describes the warnings that the Code Analysis for Drivers reports when it detects a possible error in driver code.

Measuring Complexity and Maintainability of Managed Code
Insert description here.

Unit Test Your Code
Insert description here.