All Projects → yegor256 → hoc

yegor256 / hoc

Licence: MIT license
Hits-of-Code Command Line Calculator

Programming Languages

ruby
36898 projects - #4 most used programming language
Gherkin
971 projects

EO principles respected here Managed by Zerocracy DevOps By Rultor.com We recommend RubyMine

Build Status Build status Gem Version Maintainability Test Coverage

Hits-of-Code

It is a command line tool to calculate Hits-of-Code metric in a source code repository (at the moment we support Git 2+ and Subversion 1.7+). You can read more about Hits-of-Code metric in this blog post: Hits-of-Code Instead of SLoC.

You can also use hitsofcode.com by Valentin Brandl, if you want to have a badge in your repo.

Install it first:

$ gem install hoc

Run it locally and read its output:

$ hoc --help

For Subversion statistics you must have diffstat installed.

How to contribute

Read these guidelines. Make sure you build is green before you contribute your pull request. You will need to have Ruby 2.3+ and Bundler installed. Then:

$ bundle update
$ bundle exec rake

If it's clean and you don't see any error messages, submit your pull request.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].