Skip to content

Commit

Permalink
[Fix rubocop#5976] Remove Rails cops
Browse files Browse the repository at this point in the history
Fixes rubocop#5976.

This PR removes Rails department from RuboCop core.

- Remove Rails department cops
- Remove `-R/--rails` option from `rubocop` command

These were transferred to RuboCop Rails gem.
https://github.com/rubocop-hq/rubocop-rails

Some internal implementations of `TargetRailsVersion` remain. The final
goal in the near future is to extract `TargetRailsVersion`
implementation to RuboCop Rails from RuboCop core.
rubocop/rubocop-rails#47

This PR aims removing Rails cops and `rubocop -R /-rails` option that
affect RuboCop 0.72.0 users.

It may be better to merge this PR when we decide the next release
version is RuboCop 0.72.
  • Loading branch information
koic committed May 31, 2019
1 parent 5076661 commit f363432
Show file tree
Hide file tree
Showing 128 changed files with 26 additions and 16,215 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,11 @@

## master (unreleased)

### Changes

* [#5976](https://github.com/rubocop-hq/rubocop/issues/5976): Remove Rails cops. ([@koic][])
* [#5976](https://github.com/rubocop-hq/rubocop/issues/5976): Remove `rubocop -R/--rails` option. ([@koic][])

## 0.71.0 (2019-05-30)

### New features
Expand Down
4 changes: 0 additions & 4 deletions README.md
Expand Up @@ -75,10 +75,6 @@ RuboCop supports the following Ruby implementations:
* MRI 2.3+
* JRuby 9.1+

The Rails cops support the following versions:

* Rails 4.0+

## Team

Here's a list of RuboCop's core developers:
Expand Down

0 comments on commit f363432

Please sign in to comment.