Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

toshimaru/rubocop-rails

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

RuboCop Rails Build Status Gem Version

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

⚠️ rubocop-rails is renamed to rubocop-rails_config ⚠️

rubocop-rails is renamed to rubocop-rails_config. To migrate to new gem, install rubocop-rails_config instead of rubocop-rails. See detail here

gem "rubocop-rails_config"

Then, run update command.

$ bundle exec rails generate rubocop_rails_config:update

Sample Pull Request

In this PR, rubocop-rails gem is changed to rubocop-rails_config gem.

toshimaru/RailsTwitterClone#191


Installation

Add this line to your application's Gemfile:

gem "rubocop-rails"

Usage

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

inherit_gem:
  rubocop-rails:
    - 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/rails.yml

AllCops:
  TargetRubyVersion: 2.3

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

License

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages