Guard for rails_best_practices, a code metric tool to check the quality of rails code.
Ruby
Switch branches/tags
Latest commit 1f4b2ed Jan 6, 2015 @logankoester Merge pull request #11 from thejchap/guard-2
Guard 2 compatibility
Permalink
Failed to load latest commit information.
lib/guard
spec
.gitignore
Gemfile
README.md
Rakefile
guard-rails_best_practices.gemspec

README.md

Guard - Rails Best Practices

BDD your Rails Best Practices checklist alongside your specs with Guard.

By adding your own checklists, this can be a great way to enforce those code style documents that everyone on your team has forgotten!

Install

In your Rails 3.0+ application, add the guard, rails_best_practices, and guard-rails_best_practices gems to your Gemfile:

group :development do
  gem 'rails_best_practices'
  gem 'guard'
  gem 'guard-rails_best_practices'
end

Add guard definitions to your Guardfile by running:

guard init rails_best_practices

Guard will now inform you of Rails Best Practices warnings.

Options

These options are available (with the following defaults):

options[:vendor]   = true # Include vendor/
options[:spec]     = true # Include spec/
options[:test]     = true # Include test/
options[:features] = true # Include features/
options[:exclude]  = '' # Exclude [PATTERN]
options[:run_at_start] = true # Run checklist when guard starts

See https://github.com/railsbp/rails_best_practices for details.

It is recommended that you run rails_best_practices -g to generate a rails_best_practices.yml file for your application, so you can tune the checklists to your own unique tastes.

You can also extend rails_best_practices by writing your own checklists .

Authors

Logan Koester