golang support in ohcount

15 views
Skip to first unread message

Scott Lawrence

unread,
Jul 28, 2010, 7:07:39 PM7/28/10
to golang-nuts
The ohcount fork at http://github.com/bytbox/ohcount now recognizes go
files. (The parser is essentially just a copy of the C one, since the
comment syntax is the same and ohcount doesn't care about much else.)
It's ego-feeding time!

Run on the src directory of the current mercurial repo, it yields:

$ ohcount
Examining 1535 file(s)

Ohloh Line Count Summary

Language Files Code Comment Comment % Blank Total
---------------- ----- --------- --------- --------- --------- ---------
golang 734 142935 24810 14.8% 19560 187305
c 383 126541 15376 10.8% 15638 157555
assembler 83 4770 1445 23.3% 918 7133
cpp 8 3728 753 16.8% 462 4943
perl 1 3687 538 12.7% 524 4749
make 147 2134 541 20.2% 754 3429
shell 14 889 263 22.8% 176 1328
javascript 1 133 0 0.0% 2 135
awk 2 92 35 27.6% 11 138
html 3 67 0 0.0% 6 73
---------------- ----- --------- --------- --------- --------- ---------
Total 1376 284976 43761 13.3% 38051 366788


--
Scott Lawrence

Reply all
Reply to author
Forward
0 new messages