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 one of the following perspectives: z/OS Projects, Enterprise Development, or AIX COBOL.
  2. Create a project, such as a z/OS® project, and add COBOL or PL/I source code files to it.

Procedure

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

  1. Open the software analysis configuration window. 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.
    Tip: Hover over a rule to display a description of it. You can also get information by selecting a rule and pressing F1. For more information, see Scope and rules for a software analysis configuration. For rule sets, see Identifying rules that belong to a rule set.
    1. In Analysis Domains and Rules, expand the COBOL Code Review or PL/I Code Review domain.
    2. Expand a rule category, such as Program Structures.
    3. Select a rule, such as Avoid ACCEPT 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