Previous Topic Next topic Print topic


Performing Code Analysis when Building a Project in the IDE

Before you build a project, enable code analysis in the project's properties as follows:

  1. In the IDE, navigate to your project's properties.
  2. Click the Micro Focus Code Analysis tab.
  3. Check Run active rule sets after build and one or more rule sets.

    To view and modify the set of rules that will be executed with each rule set, click Micro Focus Code Analysis Manager. Click OK to confirm any changes you have made.

  4. Click File > Save All.

Having enabled code analysis for a project, to run code analysis on it you simply need to build the project (as a standalone project or with other projects), or the entire solution.

When code analysis is in progress, the Build, Rebuild and Clean commands for the solution and the projects are disabled. (Similarly, the code analysis menu commands are disabled when a build, rebuild or a clean command is being executed.

Running code analysis on multiple projects is performed in parallel.

Building a project with code analysis enabled produces analysis reports. Any messages from the code analysis are displayed in the Output window alongside the build messages and the reports are automatically displayed in the Micro Focus Code Analysis window. See The Micro Focus Code Analysis Window for details about how to view and navigate the reports.

Previous Topic Next topic Print topic