Friday 2 September 2011

Visual Studio, increase maximum number of code analysis warnings in IDE


When running Visual Studio Code Analysis on a project, you may encounter the following error:

   CA0503: Additional warnings cannot be displayed.

By default, a maximum of 200 warnings are displayed in the Error List.

This can be increased by modifying the following registry value(s):

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0_Config\Setup\EDev\CodeAnalysisErrorListViolationLimit
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\Setup\EDev\CodeAnalysisErrorListViolationLimit
HKEY_USERS\.DEFAULT\Software\Microsoft\VisualStudio\10.0_Config\Setup\EDev\CodeAnalysisErrorListViolationLimit



for older versions it may be here:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Setup\EDev\CodeAnalysisErrorListViolationLimit

Microsoft says that 200 is the magic number based on minimum recommended system configuration.

Alternative way is to do it in IDE: 



You can configure the maximum number of errors and warnings that appear for your database project. By default, the maximum number is 200 errors and warnings.

To configure the maximum number of errors and warnings

  1. On the Tools menu, click Options.
  2. In the tree, expand the Database Tools node, and click Database Errors and Warnings.
  3. In Maximum errors and warnings to display, type the maximum number of errors and warnings that you want to appear for your database projects.
  4. Click OK.

No comments:

Post a Comment