Project

guard-inch

0.01
No commit activity in last 3 years
No release in over 3 years
This gem is a Guard plugin, which integrates the inch documentation measurement tool.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
~> 1

Runtime

~> 2
~> 0
 Project Readme

Guard::Inch

Inch CI Code Climate

A Guard gem plugin that integrates the Inch documentation measurement tool.

Installation

Add this line to your application's Gemfile:

gem 'guard-inch'

And then execute:

$ bundle

Or install it yourself as:

$ gem install guard-inch

Usage

The plugin can be configured using guard init inch.

Afterward, just run guard

guard

or

bundle exec guard

and the tool will rerun inch on the files you are working with as you change them.

Options

Other options can be set in the Guardfile

guard :inch, pedantic: true, private: true, all_on_start: true, all_type: :stats do
  watch(/.+\.rb/)
end

The above example shows use of several different options:

  • pedantic: determines whether or not to use the pedantic flag for changed file runs

  • private: as with pedantic, but for the private command-line flag

  • all_on_start: determines whether or not to do a run all on startup

  • all_type: specifies which run type should be used for run all with options mapping to those provided by inch

    • :stats
    • :list
    • :suggest

Contributing

  1. Fork it ( http://github.com/chills42/guard-inch/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request