Unify Rails development style across rails projects. Inspired by percy-style.
Add to your Gemfile:
group :development, :test do
gem 'rails_style', github: 'ZeusWPI/rails_style'
end
Run
bundle install
Run
rake rails_style:install
Create a .rubocop.yml
file with:
inherit_gem:
rails_style:
- default.yml
When adding this to a new project, run bundle exec rubocop --auto-gen-config
to start with a "clean" slate.
Run
bundle exec rubocop