Structural Analysis code review

The Structural Analysis code review consists of one category only; it is also called Structural Analysis.

Purpose

The Structural Analysis code review applies supplied and user-defined rules, which you create with Structural Analysis templates. This code review analyzes dependencies between components to find structural problems in the code. You can run this code review on the workspace, a working set, or a project. However, if you run it on a single file, no results are displayed. Due to the depth of the structural analysis, it might take more time for this code review to finish.

Rule categories

The following table lists all of the categories and subcategories in the Structural Analysis code review, along with a description of the rules in each one. In the left column, categories are in bold text and subcategories are in plain text.

Category or subcategory Description
Structural Analysis Contains a set of rules that help you conduct an architectural review of your code
Breakable Contains rules for flagging objects with excessive immediate dependencies
Cyclic Dependency Contains rules for flagging cyclic dependencies between objects
Hub Contains rules for flagging objects with excessive immediate dependencies and immediate dependents

Sample rule

The following rule is a sample one that is applied in the Structural Analysis code review. It is in the Structural Analysis category, in the Breakable subcategory.
Avoid components that depend on > D other components
Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.