linecounter

Recognized extensions are: .cs .c .cpp .h .idl .odl .rc .rc2 .inl .java .bas .cls .frm

This section

                                                file name    total    code
---------------------------------------------------------  ------- -------

"file name" is the scanned file's path relative to the starting directory.
"total" is the total number of lines in the file.
"code" is the total number of code lines in the file. Code lines do not include blank lines or comment-only lines.

The next set of sections shows a summary for each project directory found. A project is a sub-directory under the starting directory. Here's a sample:


-------------------------------------------------------------------------------
Project: astyle
    Total dirs           :    17
    Total files          :   370
    Total source files   :   329
    ----------------------------
          .cpp files     :   307 (35068 lines)
          .h files       :    22 ( 2494 lines)
    ----------------------------
    Total 0 length files :     0
    Total 0 comment files:   143
    Largest file         : ./astyle/astyleOrig/ASBeautifier.cpp ( 1830 lines)
    Total switches       :    41
    Total classes        :    49
    Total lines          : 37562
    Code lines           : 26510
    Percent code lines   :    71%

"Total dirs" is the number of directories scanned.
"Total files" is the number of files scanned.
"Total Source files" is the number of files that have recognized file extensions.
".cpp files" shows the number of files found with that file extension and the total number of lines in those files. There will be one entry for each extension found.
"Total 0 length files" is the total number of empty files, i.e the file size is 0.
"Total 0 comment files" is the total number of files that no comments.
"Largest file" is the name of the file that had the highest number of lines.
"Total switches" is the number of 'switch' statements found.
"Total classes" is the number of class definitions found.
"Total lines" is the total number of lines in all files
"Code lines" is the total number of code lines in all files
"Percent code lines" is the ratio of total code lines to total lines.

There is a final summary section that gives the same information but across all projects.

Typical Output:

                                                file name    total    code
---------------------------------------------------------  ------- -------
                         ./astyle/astyle/ASBeautifier.cpp    1430    1108  77%
                           ./astyle/astyle/ASBeautifier.h      72      62  86%
                          
                                      ./w32chat/w32chat.h       9       7  78%
                                     ./w32chat/w32chat.rc     149      70  47%

-------------------------------------------------------------------------------
Project: astyle
    Total dirs           :    17
    Total files          :   370
    Total source files   :   329
    ----------------------------
          .cpp files     :   307 (35068 lines)
          .h files       :    22 ( 2494 lines)
    ----------------------------
    Total 0 length files :     0
    Total 0 comment files:   143
    Largest file         : ./astyle/astyleOrig/ASBeautifier.cpp ( 1830 lines)
    Total switches       :    41
    Total classes        :    49
    Total lines          : 37562
    Code lines           : 26510
    Percent code lines   :    71%



-------------------------------------------------------------------------------
Totals:
Total dirs           :    77
Total files          :   910
Total source files   :   555
----------------------------
          .c files       :     2 (  213 lines)
          .cpp files     :   339 (38605 lines)
          .cs files      :    37 ( 4244 lines)
          .h files       :    65 ( 3750 lines)
          .java files    :   111 (12035 lines)
          .rc files      :     1 (  149 lines)
----------------------------
Total 0 length files :     1
Total 0 comment files:   148
Largest file         : ./astyle/astyleOrig/ASBeautifier.cpp ( 1830 lines)
Total switches       :    51
Total classes        :   247
Total lines          : 58996
Code lines           : 42885
Percent code lines   :    73%