Report: Totals Only Mode (Options changed in Version 6.00) |
Option: -T |
Option Parameters:-Ta Total Functions, Classes, Namespaces, Quality Notices, LOC
-Tf Total Functions, Classes Namespaces and Notices
-Ti Inheritance Tree Only
-Tl No Summaries of functions, classes etc., only totals
-Tn Total Quality Notices Summary by file and line number
-To Total Classes, Interfaces, Namespaces
-Tp Total Quality Profile, Summary by notice type
-Tq Total Quality Notice Summary by file
-Ts Total LOC Summary
-TN No file names displayed
-Tw Work File Differential Summary
|
Compatible Options: RSM Option Cross Reference |
Usage: rsm -H -O report.htm -Ta *.h *.cpp rsm -H -O report.htm -Ta *.java rsm -H -O report.htm -Ta -TN *.h *.cpp rsm -H -O report.htm -Ta -TN *.java rsm -H -O report.htm -Tf *.h *.cpp rsm -H -O report.htm -Ti -TN *.h *.cpp rsm -H -O report.htm -To *.h *.cpp rsm -H -O report.htm -Tn *.h *.cpp rsm -H -O report.htm -Tp *.h *.cpp rsm -H -O report.htm -Ta -Tl -TN rsm -H -O report.htm -Tw -wx rm112819.99 rm012820.00 |
Source: C, C++ and Java |
The totals mode allows the user to display only the totals for a project
(all files). This mode produces summary lists of functions, classes, namespaces
(C++), packages (Java), interfaces (Java) and Quality Notices. There are option
parameters to modify the content of the report. The quality profile for the project is
especially useful for determining the overall internal code quality. This report can
be used as acceptance criteria for contracted source code. The -k option can sort the project lists by different keys. The cyclomatic key sort is useful in identifying the most complex functions, classes or namespace/packages. You may desire to turn off the lengthy list of file names for the project. This can be accomplished by using the -TN option. |
~~ Project Functional Metrics ~~ Sorted By Name 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 Function: Cell::Get_target LOC 3 eLOC 1 lLOC 1 InCmp 1 CycloCmp 1 Function: Cell::Get_x LOC 3 eLOC 1 lLOC 1 InCmp 1 CycloCmp 1 Function: Cell::Get_y LOC 3 eLOC 1 lLOC 1 InCmp 1 CycloCmp 1 Function: Cell::Get_z LOC 3 eLOC 1 lLOC 1 InCmp 1 CycloCmp 1 Function: Cell::Hit LOC 14 eLOC 8 lLOC 5 InCmp 1 CycloCmp 3 Function: Cell::Set_target LOC 3 eLOC 1 lLOC 1 InCmp 2 CycloCmp 1 Function: Cell::Set_xyz LOC 3 eLOC 1 lLOC 3 InCmp 4 CycloCmp 1 Function: Cell::~Cell LOC 2 eLOC 0 lLOC 0 InCmp 1 CycloCmp 1 Function: Ocean::Hit LOC 3 eLOC 1 lLOC 1 InCmp 4 CycloCmp 1 Function: Ocean::Ocean LOC 2 eLOC 0 lLOC 0 InCmp 1 CycloCmp 1 Function: Ocean::Set_target LOC 2 eLOC 0 lLOC 0 InCmp 5 CycloCmp 1 Function: Ocean::~Ocean LOC 2 eLOC 0 lLOC 0 InCmp 1 CycloCmp 1 Function: Target::Get_status LOC 3 eLOC 1 lLOC 1 InCmp 1 CycloCmp 1 Function: Target::Hit LOC 23 eLOC 13 lLOC 9 InCmp 1 CycloCmp 3 Function: Target::Show LOC 5 eLOC 3 lLOC 1 InCmp 1 CycloCmp 1 Function: Target::Target LOC 17 eLOC 11 lLOC 7 InCmp 3 CycloCmp 2 Function: Target::~Target LOC 6 eLOC 4 lLOC 2 InCmp 1 CycloCmp 1 Function: main LOC 21 eLOC 15 lLOC 15 InCmp 1 CycloCmp 3 Function: main LOC 14 eLOC 12 lLOC 12 InCmp 1 CycloCmp 1 Function: main LOC 8 eLOC 6 lLOC 6 InCmp 1 CycloCmp 1 Total: Functions LOC 152 eLOC 88 lLOC 75 InCmp 36 CycloCmp 29 ------------------------------------------------------------------------ ~~ Project Functional Analysis ~~ Total Functions .......: 22 Total Physical Lines ..: 176 Total LOC .............: 152 Total eLOC ............: 88 Total lLOC ............: 75 Total Cyclomatic Comp. : 29 Total Interface Comp. .: 36 Total Parameters ......: 14 Total Return Points ...: 22 Total Comment Lines ...: 7 Total Blank Lines .....: 17 ------ ----- ----- ------ ------ ----- Max LOC ...............: 23 Max eLOC ..............: 15 Max lLOC ..............: 15 Max Cyclomatic Comp. ..: 3 Max Interface Comp. ...: 5 Max Parameters ........: 4 Max Return Points .....: 1 Max Comment Lines .....: 5 Max Total Lines .......: 29 ------ ----- ----- ------ ------ ----- Min LOC ...............: 2 Min eLOC ..............: 0 Min lLOC ..............: 0 Min Cyclomatic Comp. ..: 1 Min Interface Comp. ...: 1 Min Parameters ........: 0 Min Return Points .....: 1 Min Comment Lines .....: 0 Min Total Lines .......: 2 ------ ----- ----- ------ ------ ----- Avg Physical Lines ....: 8.00 Avg LOC ...............: 6.91 Avg eLOC ..............: 4.00 Avg lLOC ..............: 3.41 Avg Cyclomatic Comp. ..: 1.32 Avg Interface Comp. ...: 1.64 Avg Parameters ........: 0.64 Avg Return Points .....: 1.00 Avg Comment Lines .....: 0.32 ------------------------------------------------------------------------ ~~ Project Class Metrics ~~ Sorted By Name Class: Cell LOC 65 eLOC 39 lLOC 35 InCmp 15 CycloCmp 12 Class: Ocean LOC 24 eLOC 14 lLOC 11 InCmp 11 CycloCmp 4 Class: Target LOC 69 eLOC 45 lLOC 30 InCmp 7 CycloCmp 8 Total: All Classes LOC 158 eLOC 98 lLOC 76 InCmp 33 CycloCmp 24 ------------------------------------------------------------------------ Total Classes .........: 3 Total Methods .........: 19 Total Physical Lines ..: 165 Total LOC .............: 158 Total eLOC ............: 98 Total lLOC ............: 76 Total Cyclomatic Comp. : 24 Total Interface Comp. .: 33 Total Parameters ......: 14 Total Return Points ...: 19 Total Comment Lines ...: 7 Total Blank Lines .....: 5 ------ ----- ----- ------ ------ ----- Max Methods ...........: 10 Max LOC ...............: 69 Max eLOC ..............: 45 Max lLOC ..............: 35 Max Cyclomatic Comp. ..: 12 Max Interface Comp. ...: 15 Max Parameters ........: 7 Max Return Points .....: 10 Max Comment Lines .....: 6 Max Total Lines .......: 71 ------ ----- ----- ------ ------ ----- Min Methods ...........: 4 Min LOC ...............: 24 Min eLOC ..............: 14 Min lLOC ..............: 11 Min Cyclomatic Comp. ..: 4 Min Interface Comp. ...: 7 Min Parameters ........: 2 Min Return Points .....: 4 Min Comment Lines .....: 0 Min Total Lines .......: 26 ------ ----- ----- ------ ------ ----- Avg Physical Lines ....: 55.00 Avg Methods ...........: 6.33 Avg LOC ...............: 52.67 Avg eLOC ..............: 32.67 Avg lLOC ..............: 25.33 Avg Cyclomatic Comp. ..: 8.00 Avg Interface Comp. ...: 11.00 Avg Parameters ........: 4.67 Avg Return Points .....: 6.33 Avg Comment Lines .....: 2.33 ------------------------------------------------------------------------ |