Report:  Summary Lines of Code Report
Option:  -s
Compatible Options: RSM Option Cross Reference
Usage:
rsm -H -O report.htm -s *.h *.cpp 
rsm -H -s *.h *.cpp > report.htm
Source:  C, C++ and Java
The summary report lists each filename and the LOC metrics for each file.   This mode is designed as a summary report and is not intended to be used with other reports.  All input modes File List (F), Recursive (r) and the standard named file or named wild card are acceptable.

Lines of Code, LOC is defined as those lines in a file that are not blank or sole comment lines.

Effective Lines of Code, eLOC, is defined as those lines in a file that are not blanks, sole comments or stand alone parenthesis or braces.  This metric best represents the quantity of work performed to create the source code document.

Logical Lines of Code, lLOC, is defined as those lines in a file that form a code statement by ending in a semicolon, where the for loop construct counts as 1 code statement.

Comment lines are those lines that contain a comment.  This includes lines that have both code and comments on the same physical line.  Logical lines in a file is defined as the sum of LOC, Comments and Blanks.  This metric may and should exceed the physical lines in a file where there are both comments and code on the same physical line.  You may use the -v mode to report logical lines in a file. The metric "Lines" in this report is defined as physical lines within the file.

  File: cell.h
  Date: Thu Jun 24 20:30:34 1999                      File Size: 726 Bytes
  LOC 23       eLOC 21       lLOC 15       Comment 11       Lines       36

  File: ocean.h
  Date: Thu Jun 24 20:30:48 1999                      File Size: 574 Bytes
  LOC 22       eLOC 20       lLOC 11       Comment 5        Lines       34

  File: target.h
  Date: Thu Jun 24 21:00:02 1999                      File Size: 683 Bytes
  LOC 27       eLOC 23       lLOC 12       Comment 8        Lines       43

  File: cell.cpp
  Date: Thu Jul 01 20:37:54 1999                     File Size: 1637 Bytes
  LOC 92       eLOC 62       lLOC 36       Comment 7        Lines      122

  File: ocean.cpp
  Date: Thu Jun 24 20:30:52 1999                      File Size: 837 Bytes
  LOC 34       eLOC 24       lLOC 13       Comment 10       Lines       56

  File: target.cpp
  Date: Thu Jun 24 21:07:00 1999                     File Size: 1323 Bytes
  LOC 83       eLOC 57       lLOC 27       Comment 3        Lines       99