Posted by tjholowaychuk on September 11, 2008 at 5:39pm
I whipped up a quick source code line counting bash script to evaluate work that I have previously done. However that being said I ran it against Drupal 6 core without any contrib, and its interesting to see where the numbers are at. Currently it does not parse or report on comments or markup however I will add that in there soon.
module 24442
inc 38890
php 4670
install 6139
js 3621
css 5164
total 82926 Will be interesting to compare with D7 if/when (already?) hook_hooks and others are implemented allowing us to slim our .module files even more.
Comments
puregin
puregin - djun kim - has done lots of work on this. I suggest contacting him.
http://www.puregin.org/drupal-6-2-code-metrics
knaddison blog | Morris Animal Foundation
Cool stuff Tj
Cool stuff
Tj Holowaychuk
Vision Media - Victoria BC Web Design
Victoria British Columbia Web Design School
Tj Holowaychuk
Vision Media - Victoria BC Web Design
Victoria British Columbia Web Design School
Ohloh has 'ohcount'
Ohloh has 'ohcount' available for download at http://labs.ohloh.net/ohcount for anyone who is interested. My script is currently only 6 lines haha.. so I will finish that up tommorrow and have that available on my site, although it will not provide metrics for a wide variety of languages like ohcount will.
Tj Holowaychuk
Vision Media - Victoria BC Web Design
Victoria British Columbia Web Design School
Tj Holowaychuk
Vision Media - Victoria BC Web Design
Victoria British Columbia Web Design School
Here is the output of a more
Here is the output of a more valid ruby gem analysis program on a slightly older version of Drupal 6 with nothing contrib.
declared classes 2declared functions 2243
files 283
files css 59
files inc 80
files install 25
files js 23
files module 33
files php 63
lines 82935
lines blank 7379
lines comments 24328
lines todo 6
comment ratio 0.29
Tj Holowaychuk
Vision Media - Victoria BC Web Design
Victoria British Columbia Web Design School
Tj Holowaychuk
Vision Media - Victoria BC Web Design
Victoria British Columbia Web Design School