Skip to content

Commit

Permalink
Merge pull request #123 from github/remove-upstream-dupes
Browse files Browse the repository at this point in the history
Replace custom `RailsApplicationRecord` and `RailsRenderInline` cops with their upstream equivalent
  • Loading branch information
bensheldon authored Oct 26, 2022
2 parents 1567efb + fb20774 commit 2a2a9d0
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 197 deletions.
10 changes: 2 additions & 8 deletions config/rails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ require:
- rubocop-github-rails
- rubocop-rails

GitHub/RailsApplicationRecord:
Enabled: true

GitHub/RailsControllerRenderActionSymbol:
Enabled: true

Expand All @@ -17,9 +14,6 @@ GitHub/RailsControllerRenderPathsExist:
GitHub/RailsControllerRenderShorthand:
Enabled: true

GitHub/RailsRenderInline:
Enabled: true

GitHub/RailsRenderObjectCollection:
Enabled: false

Expand Down Expand Up @@ -94,7 +88,7 @@ Rails/ApplicationMailer:
Enabled: false

Rails/ApplicationRecord:
Enabled: false
Enabled: true

Rails/ArelStar:
Enabled: false
Expand Down Expand Up @@ -307,7 +301,7 @@ Rails/RelativeDateConstant:
Enabled: false

Rails/RenderInline:
Enabled: false
Enabled: true

Rails/RenderPlainText:
Enabled: false
Expand Down
3 changes: 0 additions & 3 deletions config/rails_cops.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
GitHub/RailsApplicationRecord:
Enabled: pending

GitHub/RailsControllerRenderActionSymbol:
Enabled: pending
Include:
Expand Down
27 changes: 0 additions & 27 deletions guides/rails-render-inline.md

This file was deleted.

29 changes: 0 additions & 29 deletions lib/rubocop/cop/github/rails_application_record.rb

This file was deleted.

29 changes: 0 additions & 29 deletions lib/rubocop/cop/github/rails_render_inline.rb

This file was deleted.

39 changes: 0 additions & 39 deletions test/test_rails_application_record.rb

This file was deleted.

62 changes: 0 additions & 62 deletions test/test_rails_render_inline.rb

This file was deleted.

0 comments on commit 2a2a9d0

Please sign in to comment.