Last active
November 10, 2020 13:24
-
-
Save odewahn/ad46cd71e2f90ded4578147eeb3d51b1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env bash | |
# | |
# See https://stackoverflow.com/questions/26881441/can-you-get-the-number-of-lines-of-code-from-a-github-repository | |
# | |
git clone --depth 1 [email protected]:oreillymedia/heron.git | |
printf "\nTotal lines\n" | |
echo "=========================" | |
cloc heron --quiet --csv --include-lang=Python,JavaScript,HTML --exclude-dir=migrations | cut -d ',' -f 2,5 | |
printf "\nLines excluding tests\n" | |
echo "=========================" | |
cloc heron --quiet --csv --include-lang=Python,JavaScript,HTML --exclude-dir=migrations,tests | cut -d ',' -f 2,5 | |
rm -rf heron |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment