I checked out the ohcount source code from the git repository today and ran it over the Koha git repository, quite interesting.
Language Files Code Comment Comment % Blank Total ---------------------------------------------------------------- sql 50 116617 3068 2.6% 2615 122300 perl 554 79771 23089 22.4% 17813 120673 javascript 194 24677 2332 8.6% 5867 32876 xslt 24 13820 354 2.5% 700 14874 css 77 10052 495 4.7% 2181 12728 html 68 5933 48 0.8% 674 6655 xml 12 1758 382 17.9% 221 2361 python 4 332 23 6.5% 77 432 shell 5 112 23 17.0% 13 148 ---------------------------------------------------------------- Total 972 253072 29814 10.5% 30161 313047
the side effect of GNU/GPL : each file in Koha start with a reminder of the GPL, that takes 20 or 30 lines (of comments)
22% of comment in Perl code is great. Lowering by the GPL reminder would make that number much smaller I bet. Something like 10%, which is correct but not that wonderful.
Note : are pod docs considered as comment by ohcount ? If no, then those numbers are quite useless, as the pod doc is so important in Perl…
LikeLike
Yep it counts the POD
LikeLike