Running a code review

A code review can be started from the workbench toolbar, the software analysis configuration window, the project explorer view, or a programming language editor. The method of starting the code review can override the scope that is defined in the software analysis configuration.

About this task

You can run a code review by selecting a software analysis configuration or a baseline analysis configuration from any of the following locations:
  • The workbench toolbar
  • The software analysis configuration window
  • The project explorer
  • The COBOL, PL/I, or System z® LPEX editor

The scope of the code review is defined in the selected software analysis configuration or baseline analysis configuration. For a baseline analysis configuration, the scope is defined in the software analysis configuration that is selected in the baseline analysis configuration.

But the configured scope can be overridden by the method that is used to start the code review. Table 1 shows the runtime scope for each start method.

Table 1. Startup method and runtime scope
Start method: Runtime scope:
The workbench toolbar The scope that is set in the software analysis configuration.
The software analysis configuration window
A project explorer The projects or source files that are selected in the project explorer view.
A programming language editor The source code file that is open in the editor.

Starting from the main toolbar

About this task

This method runs the code review with the scope that is specified in the selected software analysis configuration or baseline analysis configuration.

Procedure

  1. Click the down arrow on the right side of the Software Analysis Software Analysis button on the main toolbar.
  2. Click the configuration that you want to run.

Results

The code review runs with the scope that is specified in the selected configuration.

Starting from the software analysis configuration window

About this task

This method runs the code review with the scope that is specified in the selected software analysis configuration or baseline analysis configuration.

Procedure

  1. Open the software analysis configuration window.
  2. In the left pane, click the configuration that you want to run.
  3. Click Analyze.

Results

The window closes and the code review runs with the scope that is specified in the selected configuration.

Starting from a project explorer view

About this task

This method runs the code review with the projects or source code files that are selected in the current project explorer view.

Procedure

  1. In the project explorer view, select the projects or files to which you want the software analysis to be applied.
  2. Right-click one of the selected projects or files and click Software Analysis.
  3. Click the software analysis configuration or baseline analysis configuration that you want to run.

Results

The code review runs with the scope set to the selected projects or source code files.

Starting from a programming language editor

About this task

This method runs the code review with the source code file that is open in the COBOL editor, the PL/I editor, or the System z LPEX editor. This method can be used to run either a local or a remote source code file. However, this method is the only way to run a code review on a remote source code file.

Procedure

  1. Open a source code file in the editor.
  2. Right-click the text area and click Software Analysis.
  3. Click the software analysis configuration or baseline analysis configuration that you want to run.

Results

The code review runs with the scope set to the source code file that is open in the editor.

What to do next

Look at the results in the Software Analyzer Results view.


Feedback