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++ 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 |
File: Contact.java Date: Tue Jul 13 20:03:14 1999 File Size: 1564 Bytes ________________________________________________________________________ Function: rolodex.Contact.Contact Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: rolodex.Contact.Contact Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: rolodex.Contact.setName Complexity Param 0 Return 1 Cyclo Vg 4 Total 5 LOC 26 eLOC 14 lLOC 9 Comment 0 Lines 26 |