From fba37250ca397c7a9af74360ab221f2b9a54ebe1 Mon Sep 17 00:00:00 2001 From: James Robinson Date: Thu, 28 Mar 2024 16:02:59 +0000 Subject: [PATCH] Disable Style/MultilineBlockChain --- config/style.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/style.yml b/config/style.yml index 78d050a7..5293bcd0 100644 --- a/config/style.yml +++ b/config/style.yml @@ -153,3 +153,10 @@ Style/FrozenStringLiteralComment: # https://rubystyle.guide/#no-datetime Style/DateTime: Enabled: true + +# This rule conflicts with Style/BlockDelimiters. +# Style/MultilineBlockChain says use do...end instead of {...} for multi-line blocks, +# but Style/BlockDelimiters says use {...} instead of do...end when chaining. +# The latter should take priority over the former, because it leads to more readable code. +Style/MultilineBlockChain: + Enabled: false