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:
- Open one of the following perspectives: z/OS
Projects, Enterprise Development,
or AIX COBOL.
- 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.
- Open the software analysis configuration window.
To open the window, right-click a local project in the project explorer
view and click . For more information, see Opening the window.
- Verify that the window is in software analysis
configuration mode. See Changing the window mode.
- In the left pane, right-click Software Analyzer and
click New. The Scope and Rules tabs
open on the right side of the window.
- In the Name field, type a name for
the new software analysis configuration.
- 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.
- On the Rules tab, select the coding
rules to be applied.
- In Analysis Domains and Rules,
expand the COBOL Code Review or PL/I Code Review domain.
- Expand a rule category, such as Program Structures.
- Select a rule, such as Avoid ACCEPT statements.
- On the Properties tab:
- Set the severity for the rule. For more information, see Severity levels.
- Set the value of any custom parameter.
- 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.
- 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.