Created
March 7, 2010 04:11
-
-
Save kyleburton/324140 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Kyle Burton] kburton@phikburton-mb ~/development/loc-counts$ bash count.sh | |
Creating filelist for clojure | |
Have a non-directory at the top, so creating directory top_dir | |
Adding /Users/kburton/development/loc-counts/./count.sh to top_dir | |
Creating filelist for java | |
Creating filelist for javascript | |
Creating filelist for ruby | |
Creating filelist for sh | |
Categorizing files. | |
Finding a working MD5 command.... | |
Can't exec "md5sum": No such file or directory at /Users/kburton/local/homebrew/bin/break_filelist line 688, <CODE_FILE> line 15. | |
Found a working MD5 command. | |
Computing results. | |
SLOC Directory SLOC-by-Language (Sorted) | |
11233 ruby ruby=11233 | |
4817 clojure lisp=4817 | |
4694 java java=4694 | |
2828 javascript java=2828 | |
1182 sh sh=1182 | |
6 top_dir sh=6 | |
Totals grouped by language (dominant language first): | |
ruby: 11233 (45.37%) | |
java: 7522 (30.38%) | |
lisp: 4817 (19.45%) | |
sh: 1188 (4.80%) | |
Total Physical Source Lines of Code (SLOC) = 24,760 | |
Development Effort Estimate, Person-Years (Person-Months) = 5.81 (69.77) | |
(Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05)) | |
Schedule Estimate, Years (Months) = 1.05 (12.55) | |
(Basic COCOMO model, Months = 2.5 * (person-months**0.38)) | |
Estimated Average Number of Developers (Effort/Schedule) = 5.56 | |
Total Estimated Cost to Develop = $ 785,380 | |
(average salary = $56,286/year, overhead = 2.40). | |
SLOCCount, Copyright (C) 2001-2004 David A. Wheeler | |
SLOCCount is Open Source Software/Free Software, licensed under the GNU GPL. | |
SLOCCount comes with ABSOLUTELY NO WARRANTY, and you are welcome to | |
redistribute it under certain conditions as specified by the GNU GPL license; | |
see the documentation for details. | |
Please credit this data as "generated using David A. Wheeler's 'SLOCCount'." | |
[Kyle Burton] kburton@phikburton-mb ~/development/loc-counts$ |
I wrote a small shell script to run sloccount, for the clojure code I just concatenated all the .clj files into a single .lisp file. It didn't matter to sloccount how many individual files there were. I did something along the lines of:
$ cat $(find . -name '*.clj') > clojure.lisp
then I told sloccount to look at clojure.lisp.
Cheers for that.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How did you get sloccount to recognise clojure source files?