Important
|
This repo has been replaced by
rubocop-rubomatic-rails
|
Rubomatic-Rails
Gem for shared rubocop config for BrandsInsurance
Installation
Add this line to your application’s Gemfile:
gem 'rubomatic-rails', require: false
And then execute:
$ bundle install
Or install it yourself as:
$ gem install rubomatic-rails
Usage
Add the following to your .rubocop.yml
config file
inherit_gem:
rubomatic-rails: configs/rubocop.yml
If you need to override a setting:
# Add to Naming/VariableNumber.AllowedIdentifiers
inherit_gem:
rubomatic-rails: configs/rubocop.yml
Naming/VariableNumber:
inherit_mode:
merge:
- AllowedIdentifiers
AllowedIdentifiers:
- street_2
# Completely override Naming/VariableNumber.AllowedIdentifiers
inherit_gem:
rubomatic-rails: configs/rubocop.yml
Naming/VariableNumber:
inherit_mode:
override:
- AllowedIdentifiers
AllowedIdentifiers:
- street_2
Changelog
See CHANGELOG see see changes