summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-05-30 14:21:26 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-05-30 14:21:26 +0200
commit0c6f04427b550a600cdd78a20ffe5c3b6602ff72 (patch)
treec5c71ea253c8dfd38ac90355e817412ddc74617f /.rubocop.yml
parent43c35b0f20fb3bb67ea2b96bf8f806c7e95b6aec (diff)
downloadgitlab-ce-0c6f04427b550a600cdd78a20ffe5c3b6602ff72.tar.gz
Enable Performance/TimesMap Rubocop coprubocop/enable-performance-times-map-cop
Use Array.new with a block instead of `.times.collect` / `.times.map`. See #17478
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml3
1 files changed, 1 insertions, 2 deletions
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 ##################################