From 7cd8191a6f14bf9b44974ee1fab320f39a677d30 Mon Sep 17 00:00:00 2001 From: Camilo Payan Date: Mon, 14 Feb 2022 10:34:40 -0500 Subject: [PATCH] Removes RedundantBegin from Ruby 2.4 and below Rubocop has dropped support for Ruby <2.5 so this cop no longer functions safely on Ruby 2.4 and below. --- CHANGELOG.md | 4 ++++ config/ruby-2.4.yml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c45d0b2..92a05487 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/config/ruby-2.4.yml b/config/ruby-2.4.yml index 0225000c..4b6b35b8 100644 --- a/config/ruby-2.4.yml +++ b/config/ruby-2.4.yml @@ -2,3 +2,6 @@ inherit_from: ./ruby-2.5.yml AllCops: TargetRubyVersion: 2.5 # The oldest supported + +Style/RedundantBegin: + Enabled: false