How to count lines of code?

Viewed 24884

I tried rake stats but that seems highly inaccurate. Perhaps it ignores several directories?

5 Answers

If your code is hosted on GitHub, you can use this line count website. Just enter your GitHub URL and wait for the result.

Example for Postgres: https://line-count.herokuapp.com/postgres/postgres

File Type   Files   Lines of Code   Total lines
Text        1336    0               472106
C           1325    1069379         1351222
Perl        182     23917           32443
Shell       5       355             533
...
Related