Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to generate metrics for a GitHub project? [closed]

Tags:

github

metrics

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?

like image 916
Baptiste Wicht Avatar asked Feb 20 '12 17:02

Baptiste Wicht


2 Answers

I found two solutions:

  • ohloh: you can put your project on the site and it will analyze your source code and provide some interesting statistics
  • GitStats: a simple statistics generator for any Git repository on your computer
like image 136
Baptiste Wicht Avatar answered Oct 18 '22 23:10

Baptiste Wicht


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.

like image 26
Lazy Badger Avatar answered Oct 18 '22 23:10

Lazy Badger