Skip to content
Hits-of-Code Command Line Calculator
Ruby Gherkin
Branch: master
Clone or download
Latest commit 82df17e Oct 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github .github templates Feb 8, 2018
bin #24 #25 polished Oct 10, 2019
features #24 #25 polished Oct 10, 2019
lib #24 #25 polished Oct 10, 2019
test #24 #25 polished Oct 10, 2019
.0pdd.yml 0pdd config Jan 29, 2018
.gitattributes .gitattributes with IDENT Jun 22, 2015
.gitignore skeleton Nov 11, 2014
.pdd .pdd added Dec 22, 2016
.rubocop.yml
.rultor.yml #25 rultor config Oct 10, 2019
.simplecov
.travis.yml ruby version up to 2.6.0 for Travis Jun 21, 2019
Gemfile #24 #25 polished Oct 10, 2019
LICENSE.txt Up to 2019, Happy New Year! Jun 12, 2019
README.md elegantobjects.org HTTPS May 29, 2019
Rakefile #24 #25 polished Oct 10, 2019
appveyor.yml ruby 2.3 for appveyor Jun 2, 2017
cucumber.yml skeleton Nov 11, 2014
hoc.gemspec #24 #25 polished Oct 10, 2019

README.md

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.

You can’t perform that action at this time.