From 0ece087132dc3b7eb6dad7f7139648e4a29b4258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 2 Apr 2024 16:53:56 +0200 Subject: [PATCH] Add Style/SingleLineDoEndBlock rubocop rule This rule was added in Rubocop version 1.57.0. Even if we were always following it, we think it's useful. Note this rule doesn't detect the fact that you can still write multiline lambdas using `{}` as delimiters instead of `do...end`, which we fixed in the previous commit. But at least it detects the opposite case. --- .rubocop.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 2eff505bf..f1fec2de0 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -767,6 +767,9 @@ Style/RedundantStringEscape: Style/SafeNavigation: Enabled: true +Style/SingleLineDoEndBlock: + Enabled: true + Style/SingleLineMethods: Enabled: true