Report: Complexity, Functional Cyclomatic and Interface |
Option: -c |
Compatible Options: RSM Option Cross Reference |
Usage: rsm -H -O"report.htm" -c *.cpp rsm -H -O"report.htm" -c *.java |
Source: C, C++, C# and Java |
RSM determines the interface complexity and cyclomatic complexity
for each Class and Function. These complexity metrics can assist the
user in the determination for module ease of use, whether or not the module
should be multiple modules or the number of test cases a function should
have for unit testing. Interface
Complexity: (InterCmp) is defined by RSM as the number of input parameters to a
function plus the number of return states from that function. Class interface
complexity is the sum of all function interface complexity metrics within that class. The following equations defined McCabe Cyclomatic Complexity:
The following hyperlink details the predicate node approach and relates the calculation to actual source code. RSM is compliant with these definitions. Cyclomatic Complexity Analysis |