Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

UserTesting's Rubocop Setup... for Rails

Notifications You must be signed in to change notification settings

usertesting/ut_rubocop_rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

UserTesting

Contributing

  1. Fork it ( https://github.com/usertesting/ut_rubocop_rails/fork )
  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 a new Pull Request

About

UserTesting's Rubocop Setup... for Rails

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages