This topic is locked

Count of Generated Code, Lines, etc.

6/15/2009 7:40:15 PM
PHPRunner General questions
K
kenlyle author

Hey! Is there any quick way to get the total generated code for an application/PHPR project? Sometimes, it would be cool to try to estimate the man-years that it would take...
Best,

Ken

K
kenlyle author 6/15/2009

How about this?
perl cloc.pl . --quiet

Counting: 80000 files

http://cloc.sourceforge.net v 1.08 T=16.0 s (46.2 files/s, 20425.1 lines/s)

-------------------------------------------------------------------------------

Language files blank comment code scale 3rd gen. equiv

-------------------------------------------------------------------------------

PHP 583 34905 21728 213640 x 3.50 = 747740.00

HTML 134 1468 453 39792 x 1.90 = 75604.80

Perl 1 533 738 5170 x 4.00 = 20680.00

Javascript 16 509 472 4973 x 1.48 = 7360.04

CSS 4 162 44 1822 x 1.00 = 1822.00

XML 1 0 0 231 x 1.90 = 438.90

ASP.Net 1 20 0 142 x 1.29 = 183.18

-------------------------------------------------------------------------------

SUM: 740 37597 23435 265770 x 3.21 = 853828.92

-------------------------------------------------------------------------------
Not bad...tidy little project that I kicked out in a couple of hours.
Ken