Created
November 25, 2021 12:38
-
-
Save mosheeshel/61d0dcc6c8a25dc42187a30e7255a23b to your computer and use it in GitHub Desktop.
Count lines of code in a project, and respect **.gitignore** contents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -v $PWD:/data mribeiro/cloc --exclude-dir=$(tr '\n' ',' < .gitignore) . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(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