Creating a software analysis configuration

Create a software analysis configuration to define coding rules and to specify source code files to be checked.

Before you begin

Before you can create an analysis configuration, you must complete these steps:
  1. Open the EGL perspective.
  2. Create a project and add EGL source code files to it.

Procedure

To create a software analysis configuration, follow the steps below.

  1. Open the software analysis configuration. To open the window, right-click a local project in the project explorer view and click Software Analysis > Software Analyzer Configurations. For more information, see Opening the window.
  2. Verify that the window is in software analysis configuration mode. See Changing the window mode.
  3. In the left pane, right-click Software Analyzer and click New. The Scope and Rules tabs open on the right side of the window.
  4. In the Name field, type a name for the new software analysis configuration.
  5. On the Scope tab, select Analyze selected projects and select the project that you want to analyze. These instructions assume that you want to analyze a local project. You can select other scope options in the window and you can override the configured scope at runtime. For more information, see Scope and rules for a software analysis configuration.
  6. On the Rules tab, select the coding rules to be applied.
    1. In Analysis Domains and Rules, expand the EGL Code Review domain.
    2. Expand a rule category, such as Statements.
    3. Select a rule, such as Avoid Goto statements.
    4. On the Properties tab:
      1. Set the severity for the rule. For more information, see Severity levels.
      2. Set the value of any custom parameter.
  7. To save or undo your selections, do one of the following actions:
    • To save your analysis configuration, click Apply.
    • To undo the changes since the most recent Apply, click Revert.
  8. To close the software analysis configuration window, do one of the following actions:
    • To close the window and run the software analysis configuration, click Analyze. For more information, see Running a code review.
    • To close the window without running the configuration, click Close.

What to do next

You are now ready to run the software analysis configuration. See Running a code review.


Feedback