From e504661cedc7ce3e6813d31aa10274ab566b3ca7 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Thu, 6 Jan 2022 12:29:10 +0900 Subject: [PATCH] Make `Performance/DeletePrefix` and `Performance/DeleteSuffix` aware of multiline Follow up to https://github.com/rubocop/rubocop-rails/pull/326#discussion_r778640818. For now this repository can be set to `SafeMultiline: false`. --- .rubocop.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index e94aa07d2c..bb8db94aaf 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -111,6 +111,12 @@ Metrics/ModuleLength: Exclude: - 'spec/**/*.rb' +Performance/DeletePrefix: + SafeMultiline: false + +Performance/DeleteSuffix: + SafeMultiline: false + # This disabling is a workaround for https://github.com/rubocop-hq/rubocop-rails/issues/374. RSpec/FactoryBot/CreateList: Enabled: false