Cyclomatic Complexity Report

The Cyclomatic complexity Report (or the McCabe Complexity Report) presents Cyclomatic complexity (a broad measure of soundness and confidence for a program) for the selected project entity. Cyclomatic complexity measures the number of linearly-independent paths through a program module.

To define the complexity thresholds for the Cyclomatic Report for the current project, in Explore Projects view go to the Mainframe Reports list in the pane to the right. Then, select Cyclomatic Reports and right-click on the Cyclomatic Report and select Show settings. In the Report settings dialog window, the Thresholds tab presents the complexity thresholds (Easy, Moderate, and Difficult) to be considered when the application calculates the cyclomatic complexity for the current analysis. Modify the default values as needed. The threshold for Difficult cannot be modified. A color is assigned by default to each complexity level; it is the color that is used in the report diagrams to represent a particular complexity level. To change the default color, double-click the color chip and then select the color you want. Use the Restore defaults button to return to the default settings.

To generate this report, in Explore Projects view, go to the Mainframe Reports list in the pane to the right. Select Complexity Reports then double-click the wanted report to display the report wizard. The Available programs area displays the resources available for report generation and allows the user to select the resources to be included in the report. Use the Name field to filter the contents of the list. Place the cursor over an icon to display a tooltip about the type of resource it displays and click it to display only the selected type of resource. To display the full name of the resource type, click the white arrow button to the left of the dialog window.

In Report generation options area, the selection indicates that report appendix is displayed by default. To include input details in the appendix, select the option show input details in appendix. To show only the report summary, select the appropriate option.

Use the arrow buttons to move the resources between the Available and Selected lists then click Finish to generate the report.

In Complexity Score Summary, this report presents two charts: the Complexity percentage distribution chart and the File complexity distribution chart. For COBOL, PL1, Natural it is computed as follows:
Incrementing by 1 the total number of statements that contain flow decisions