Visual Studio Diagnostics — performs the Visual Studio built-in code analysis
The Analyzer Set Selector on the toolbar allows you to switch between these modes. To analyze a current solution using the specified set of analyzers, use the Refresh button. You can export a report to plain text or an XML file using the Export toolbar button.
If your solution is very large, the analyzing process may take significant time. In this case, consider running Static Code Analysis for the active project or file only. Use the CodeRush | Code Analysis | Analyze Active Project or Analyze Active Document menu items for this.
The CodeRush Diagnostics can be integrated into Visual Studio, which enables you to analyze your code on the fly.
You can instantly see code issues in the Error List window by checking the required analyzers' Register in VS checkbox on the Editor | <Language> | Code Analysis | Code Issues Catalogoptions page. This options page can be accessed using the CodeRush | Code Analysis | Configure... Visual Studio menu item.
Background Analysis is a resource-demanding feature. Use it with caution on large solutions.
You can suppress certain Analyzers using the Code Actions Menu invoked on a line of code with a Code Issue.
There are two types of suppression:
In Source — Suppresses a single issue locally using the #pragma warning disable directive.
In Suppression File — Creates or supplements the GlobalSuppressions.cs file with the SuppressMessage attribute. This type of suppression works only for members and broader scopes. Refer to the In Source Suppression Overview article to learn more.
The analyzer set for Visual Studio's Error List window can be configured for the entire project. You can disable some analyzers permanently or change their severity. Right-click <Your project> | References | Analyzers in the Solution Explorer to configure the project's analyzer set.
We are updating the DevExpress product documentation website and this page is part of our new experience. During this transition period, product documentation remains available in our previous format at documentation.devexpress.com. Learn More...
Was this page helpful?
Thanks for your feedback! Any other suggestions? Tell us here.