Add Performance/ZipWithoutBlock rubocop rule

This rule was added in rubocop-performance 1.24.

We currently don't have code where it'd be relevant, but it's a nice
rule to have if we ever write `something.map { |element| [element] }`.
This commit is contained in:
Javi Martín
2025-10-31 12:29:03 +01:00
parent 42378285ac
commit a3c25b5a2b

View File

@@ -386,6 +386,9 @@ Performance/StartWith:
Performance/Sum: Performance/Sum:
Enabled: true Enabled: true
Performance/ZipWithoutBlock:
Enabled: true
Rails/ActionControllerFlashBeforeRender: Rails/ActionControllerFlashBeforeRender:
Enabled: true Enabled: true