Report: Key Sort Method for Function, Class and Namespace/Package Reports |
Option: -k |
Option Parameters: -k0 No list sort (default - fastest operation) -k1 Sort by Name -k2 Sort by LOC -k3 Sort by eLOC -k4 Sort by lLOC -k5 Sort by Cyclomatic Complexity -k6 Sort by Work File Difference State |
Compatible Options: RSM Option Cross Reference |
Usage: rsm -H -O report.htm -f -o -c -k5 *.h *.cpp rsm -H -O report.htm -f -o -c -K5 *.java |
Source: C, C++ and Java |
Function, Class, Package or Namespace project summaries can be sorted by the above methods. The default method is no sort key. A common sort method is to use k5 where the report summaries are sorted by cyclomatic complexity. This report makes it easy to identify the most complex entities in the system. Sorting by LOC makes it easy to identify the largest modules in the system. |
~~ Project Functional Metrics ~~ Sorted By Cyclomatic Complexity Function: Cell::Hit LOC 14 eLOC 8 lLOC 5 InCmp 1 CycloCmp 3 Function: main LOC 21 eLOC 15 lLOC 15 InCmp 1 CycloCmp 3 Function: Target::Hit LOC 23 eLOC 13 lLOC 9 InCmp 1 CycloCmp 3 Function: Target::Target LOC 17 eLOC 11 lLOC 7 InCmp 3 CycloCmp 2 Function: Cell::Cell LOC 6 eLOC 4 lLOC 4 InCmp 1 CycloCmp 1 Function: Cell::Cell LOC 6 eLOC 4 lLOC 4 InCmp 2 CycloCmp 1 |