Skip to content

Instantly share code, notes, and snippets.

@jailbirt
jailbirt / metrics.sh
Created March 6, 2017 03:05 — forked from bspaulding/metrics.sh
codebase metrics
# use noglob on zsh
# change file extensions where appropriate
# collect source file paths for analysis
find . -name "*.js" | grep -v "bower_components" | grep -v "node_modules" > source_files.txt
# number of files in project
wc -l source_files.txt
# number of lines by file