Home

Awesome

SlocStar

SlocStar is a dummy stats generator that shows how much lines of code (SLOC) belongs whom in the latest snapshot of git repo. It was written just to play with resque and posix-spawn before starting APICD.

To calculate amount of lines of code per-author I use piped bunch of commands that are running in a spawned process by resque. You can get such stats by yourself running following in the dir with your repo (no ruby needed at all):

git ls-tree -r --name-only HEAD | while read file ; do
  git blame --line-porcelain HEAD "$file" | sed -n 's/^author //p'
done | sort | uniq -c | sort -rn

Deployment

Licence & Copyrights

See COPYING.