Juni 2013

So Mo Di Mi Do Fr Sa
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            

Tags


Mit “counting” getaggte Einträge von rainboxx - Matthias Dietrich

Ever wanted to count the lines of code you’ve written in a project? I guess you have and you may came to a solution that was build by yourself. It worked, but not more.

Today I stumbled upon CLOC — Count Lines of Code — that is a small Perl programm which does a fair good job at counting, recognizing comments, empty lines and so on. It also finds out in which language each file is written (by file extensions). There are also plenty of options to ignore folders (like .git or externals) or files by regex (like single Javascript libraries).

A simple check looks like this:

Check out this project on sourceforge and give it a try. Installing is painless: Just download the file and you’re done! http://cloc.sourceforge.net.