Guard for rails_best_practices, a code metric tool to check the quality of rails code.
Switch branches/tags
Nothing to show
Pull request Compare This branch is 18 commits behind logankoester:master.
Latest commit 0c41dac Oct 6, 2011 Logan Koester Reorganization, fixes notifier
Failed to load latest commit information.

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!


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'

Add guard definitions to your Guardfile by running:

guard init rails_best_practices

Guard will now inform you of Rails Best Practices warnings.


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 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 .


Logan Koester