Skip to content

Commit

Permalink
Removes RedundantBegin from Ruby 2.4 and below
Browse files Browse the repository at this point in the history
Rubocop has dropped support for Ruby <2.5 so this cop no longer
functions safely on Ruby 2.4 and below.
  • Loading branch information
Camilo Payan committed Feb 14, 2022
1 parent 091ab4d commit 7cd8191
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Unreleased

* Removes Style/RedundantBegin from Ruby versions <= 2.4

## 1.7.1

* Update rubocop from 1.25.0 to [1.25.1](https://github.com/rubocop/rubocop/tag/v1.25.1)
Expand Down
3 changes: 3 additions & 0 deletions config/ruby-2.4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ inherit_from: ./ruby-2.5.yml

AllCops:
TargetRubyVersion: 2.5 # The oldest supported

Style/RedundantBegin:
Enabled: false

0 comments on commit 7cd8191

Please sign in to comment.