Skip to content
RuboCop configuration which has the same code style checking as official Ruby on Rails.
Branch: master
Clone or download
Latest commit e89e49e Jun 17, 2019

README.md

rubocop-rails_config

Build Status Gem Version

RuboCop configuration which has the same code style checking as official Ruby on Rails.

Official RoR RuboCop Configuration

Installation

Add this line to your application's Gemfile:

gem "rubocop-rails_config"

Usage

Add this line to your application's .rubocop.yml, or just run rails generate rubocop_rails_config:install:

inherit_gem:
  rubocop-rails_config:
    - config/rails.yml

Customization

If you'd like to customize the rubocop setting, you can override it.

For example, if you want to change TargetRubyVersion, you can do it like:

inherit_gem:
  rubocop-rails_config:
    - config/rails.yml

AllCops:
  TargetRubyVersion: 2.6

This overrides config/rails.yml setting with TargetRubyVersion: 2.6.

License

The gem is available as open source under the terms of the MIT License.

You can’t perform that action at this time.