Skip to content

Commit 5480c03

Browse files
authored
Merge pull request rails#38992 from eugeneius/rubocop_rails_index_by_index_with
Enable Rails/IndexBy and Rails/IndexWith cops
2 parents fe936fa + a9fc2d4 commit 5480c03

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.rubocop.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ Rails/RefuteMethods:
3131
Include:
3232
- '**/test/**/*'
3333

34+
Rails/IndexBy:
35+
Enabled: true
36+
37+
Rails/IndexWith:
38+
Enabled: true
39+
3440
# Prefer &&/|| over and/or.
3541
Style/AndOr:
3642
Enabled: true

0 commit comments

Comments
 (0)