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.
This commit is contained in:
Javi Martín
2024-04-02 16:53:56 +02:00
parent d0a2c0cf66
commit 0ece087132

View File

@@ -767,6 +767,9 @@ Style/RedundantStringEscape:
Style/SafeNavigation: Style/SafeNavigation:
Enabled: true Enabled: true
Style/SingleLineDoEndBlock:
Enabled: true
Style/SingleLineMethods: Style/SingleLineMethods:
Enabled: true Enabled: true