Reference: Stats

Tech: Git, CLI, Rails/Rake

Challenge: a colleague recently asked, “how many lines of code is this application?”. Like many questions I face daily, I didn’t know! But I can sure find out. This question flowed out of a project I was asked to refactor.

Code:

Rails rake provides a succinct snapshot of what’s what in your project.

rake stats

stats_rake

 

And of course, Git provides numerous details…

git shortlog -sne

git shortlog -sne --no-merges