cgag / loc

Count lines of code quickly.
MIT License
2.31k stars 126 forks source link

Scripts with no extensions are ignored #38

Open glandium opened 7 years ago

glandium commented 7 years ago

Take for example https://github.com/glandium/git-cinnabar On the release branch (the default you get when cloning), the git-cinnabar script is rather large, and written in Python, yet isn't counted by loc (as confirmed by loc --files)

pvdb commented 7 years ago

It wouldn't be ignored by pvdb/gloc :wink:

jedahan commented 5 years ago

Same problem with everything in functions/ being ignored since they don't have an extension in https://github.com/geometry-zsh/geometry/tree/less-dependencies

samusz commented 3 years ago

I had the same issue with a simple script (emacs-distribution from http://www.emacswiki.org/emacs/emacs-distribution) that I used for testing loc :

 ➜  bin loc emacs-distribution
 --------------------------------------------------------------------------------
  Language             Files        Lines        Blank      Comment         Code
 --------------------------------------------------------------------------------
 --------------------------------------------------------------------------------
  Total                    0            0            0            0            0
 --------------------------------------------------------------------------------