IMPORTANT: This repo has been replaced by
link:https://github.com/BrandsInsurance/rubocop-rubomatic-rails[``rubocop-rubomatic-rails``]
= Rubomatic-Rails
Gem for shared rubocop config for BrandsInsurance
== Installation
Add this line to your application's Gemfile:
[source,ruby]
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
[source,yaml]
inherit_gem:
rubomatic-rails: configs/rubocop.yml
If you need to override a setting:
[source,yaml]
Add to Naming/VariableNumber.AllowedIdentifiers
inherit_gem:
rubomatic-rails: configs/rubocop.yml
Naming/VariableNumber:
inherit_mode:
merge:
- AllowedIdentifiers
AllowedIdentifiers:
- street_2
[source,yaml]
Completely override Naming/VariableNumber.AllowedIdentifiers
inherit_gem:
rubomatic-rails: configs/rubocop.yml
Naming/VariableNumber:
inherit_mode:
override:
- AllowedIdentifiers
AllowedIdentifiers:
- street_2
== Changelog
See xref:./CHANGELOG.adoc[CHANGELOG] see see changes