I've several GithHub projects and I wanted to know the metrics of these projects.
Is there a tool to generate metrics for a given GitHub project? Even very basic metrics like LOC would be enough (even though more complete metrics would be appreciated).
I just discovered that there was a great service, Caliper, doing that, but that has been closed. Is there another services of this kind?
I found two solutions:
git log
options (some or one of)
--stat[=width[,name-width]]
Generate a diffstat. You can override the default output width for 80-column terminal by --stat=width. The width of the filename part can be controlled by giving another width to it separated by a comma.
--numstat
Similar to --stat, but shows number of added and deleted lines in decimal notation and pathname without abbreviation, to make it more machine friendly. For binary files, outputs two - instead of saying 0 0.
--shortstat
Output only the last line of the --stat format containing total number of modified files, as well as number of added and deleted lines.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With