Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to measure # of lines of code in project?

How can I measure number of lines of code in my PHP web development projects?

Edit: I'm interested in windows tools only

like image 344
Ali Avatar asked Jan 13 '09 04:01

Ali


2 Answers

Check CLOC, it's a source code line counter that supports many languages, I always recommend it.

It will differentiate between actual lines of code, blank lines or comments, it's very good.

In addition there are more code counters that you can check:

  • SLOCCount
  • sclc
  • USC's CODECOUNT
  • loc
  • Ohcount
like image 73
Christian C. Salvadó Avatar answered Oct 21 '22 10:10

Christian C. Salvadó


phploc

No experience if it runs on Windows, tho, but searching on the web showed some results of people getting it to work on Windows..

like image 26
Heikki Naski Avatar answered Oct 21 '22 10:10

Heikki Naski