No commit activity in last 3 years
No release in over 3 years
Guard::Rubocop automatically checks Ruby code style with RuboCop when files are modified.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
~> 10.0
~> 2.13
~> 0.3
~> 0.7

Runtime

~> 1.8
 Project Readme

Gem Version Dependency Status Build Status Coverage Status Code Climate

Guard::Rubocop

Guard::Rubocop allows you to automatically check Ruby code style with RuboCop when files are modified.

Tested on MRI 1.9 and MRI 2.0, according to RuboCop.

Installation

Please make sure to have Guard installed before continue.

Add guard-rubocop to your Gemfile:

group :development do
  gem 'guard-rubocop'
end

and then execute:

$ bundle install

or install it yourself as:

$ gem install guard-rubocop

Add the default Guard::Rubocop definition to your Guardfile by running:

$ guard init rubocop

Usage

Please read the Guard usage documentation.

Options

You can pass some options in Guardfile:

guard :rubocop, all_on_start: false, notification: true do
  # ...
end

Available Options

all_on_start: true     # Check all files at Guard startup, default: true
keep_failed: true      # Keep failed files until they pass, default: true
notification: :failed  # Display Growl notification after each run
                       #   true    - Always notify
                       #   false   - Never notify
                       #   :failed - Notify only when failed
                       #   default: :failed

Contributing

  1. Fork it
  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