UT Rubocop-Rails
This gem extends ut-rubocop to add Rails specific cops.
Installation
Add the gem to your Gemfile
in the dev/test group:
You don't need to add rubocop
itself, this takes care of that.
group :test, :development do
...
gem "ut-rubocop", require: false
gem "ut-rubocop-rails", require: false
In your .rubocop.yml
file, add these lines near the top:
inherit_gem:
ut-rubocop:
- default.yml
inherit_gem:
ut-rubocop-rails:
- default.yml
Usage
bundle exec rubocop
License
MIT.
Library created by UserTesting
Contributing
- Fork it ( https://github.com/usertesting/ut_rubocop_rails/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request