From 0c6f04427b550a600cdd78a20ffe5c3b6602ff72 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Mon, 30 May 2016 14:21:26 +0200 Subject: Enable Performance/TimesMap Rubocop cop Use Array.new with a block instead of `.times.collect` / `.times.map`. See #17478 --- .rubocop.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '.rubocop.yml') diff --git a/.rubocop.yml b/.rubocop.yml index 2d8eb4077f3..d89112e7eb7 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1027,10 +1027,9 @@ Performance/StartWith: Performance/StringReplacement: Enabled: true -# TODO: Enable TimesMap Cop. # Checks for `.times.map` calls. Performance/TimesMap: - Enabled: false + Enabled: true ##################### Rails ################################## -- cgit v1.2.1