From a9fc2d4daa507d5ad59359c1b1fa89c8735da782 Mon Sep 17 00:00:00 2001 From: Eugene Kenny Date: Sun, 19 Apr 2020 23:36:05 +0100 Subject: [PATCH] Enable Rails/IndexBy and Rails/IndexWith cops Followup to d3599d8affa90b60b4e9ab24fdbd35477b5ac06d, which applied this style to the existing codebase. --- .rubocop.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 1cd04a6a1a575..daf75d8e56241 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -31,6 +31,12 @@ Rails/RefuteMethods: Include: - '**/test/**/*' +Rails/IndexBy: + Enabled: true + +Rails/IndexWith: + Enabled: true + # Prefer &&/|| over and/or. Style/AndOr: Enabled: true