Add and apply Style/RedundantStringEscape rule

This rule was added in rubocop 1.37.0. It's particularly useful in the
background image spec, since now there's one less backslash to decipher
when reading the code :).
This commit is contained in:
Javi Martín
2023-09-04 18:22:58 +02:00
parent ff04009e4a
commit daa35845da
3 changed files with 6 additions and 3 deletions

View File

@@ -691,6 +691,9 @@ Style/RedundantReturn:
Style/RedundantSelf:
Enabled: true
Style/RedundantStringEscape:
Enabled: true
Style/SafeNavigation:
Enabled: true