Skip to content

Instantly share code, notes, and snippets.

@mosheeshel
Created November 25, 2021 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mosheeshel/61d0dcc6c8a25dc42187a30e7255a23b to your computer and use it in GitHub Desktop.
Save mosheeshel/61d0dcc6c8a25dc42187a30e7255a23b to your computer and use it in GitHub Desktop.
Count lines of code in a project, and respect **.gitignore** contents
docker run -v $PWD:/data mribeiro/cloc --exclude-dir=$(tr '\n' ',' < .gitignore) .
@mosheeshel
Copy link
Author

(Docker wraps cloc) count lines of code - a perl utility , the docker helps avoid needing to install PERL!)

Docker in github
https://github.com/mmr/dockerfiles/tree/master/cloc

cloc code
https://github.com/AlDanial/cloc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment