File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ printf "%-15s %10s %14s\n" "Extension" "File count" "Line count"
44
55echo -e " -----------------------------------------"
66
7- find ./src -type f -iname ' *.*' | sed -n ' s/.*\.//p' | tr ' [:upper:]' ' [:lower:]' | sort | uniq -c | while read count extension; do
8- line_count=$( find ./src -name " *.$extension " -type f -print0 | xargs -0 cat | wc -l)
7+ find ./migrations ./public ./ src ./tests -type f -iname ' *.*' | sed -n ' s/.*\.//p' | tr ' [:upper:]' ' [:lower:]' | sort | uniq -c | while read count extension; do
8+ line_count=$( find ./src ./tests -name " *.$extension " -type f -print0 | xargs -0 cat | wc -l)
99 printf " %-15s %10d %14d\n" " .$extension " " $count " " $line_count "
1010done
1111
1212echo -e " -----------------------------------------"
1313
14- total_files=$( find ./src -type f | wc -l)
15- total_lines=$( find ./src -type f -exec cat {} + | wc -l)
14+ total_files=$( find ./migrations ./public ./ src ./tests -type f | wc -l)
15+ total_lines=$( find ./migrations ./public ./ src ./tests -type f -exec cat {} + | wc -l)
1616
1717printf " %-15s %10d %14d\n" " Total:" " $total_files " " $total_lines "
You can’t perform that action at this time.
0 commit comments