Open
Description
In a project folder with 58 C files and two C header files, ccloc called as follows D:\> ccloc . -l C "C Header"
reports:
--------------------------+------------+------------+------------+------------
Language | Total | Code | Comments | Files
--------------------------+------------+------------+------------+------------
C Header | 129 | 7 | 120 | 2
C | 8863 | -210 | 8974 | 58
--------------------------+------------+------------+------------+------------
TOTAL | 8992 | -203 | 9094 | 60
--------------------------+------------+------------+------------+------------
As a comparison, when the same set of files is counted with cloc
, this is summary obtained:
github.com/AlDanial/cloc v 2.02 T=1.41 s (91.6 files/s, 8368.6 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
C 58 1071 2421 5371
C/C++ Header 2 15 66 34
-------------------------------------------------------------------------------
SUM: 60 1086 2485 5405
-------------------------------------------------------------------------------
The total lines of the two counters match for C files, and within ten lines of the wc
utility, however the rest of the metrics are very discrepant and the negative counts for code seems to be a bug of some sort.
Metadata
Metadata
Assignees
Labels
No labels