summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2016-05-30 18:06:56 +0000
committerRobert Speicher <robert@gitlab.com>2016-05-30 18:06:56 +0000
commitb05981f019581aab030fbacb7cd7bf5506d12266 (patch)
treef1f42bd96de3412b4748bffe3732cb4857d0c086 /.rubocop.yml
parente7586cfbdc6a77b5771bea38a9ee3a9c17cdd37a (diff)
parent0c6f04427b550a600cdd78a20ffe5c3b6602ff72 (diff)
downloadgitlab-ce-b05981f019581aab030fbacb7cd7bf5506d12266.tar.gz
Merge branch 'rubocop/enable-performance-times-map-cop' into 'master'
Enable Performance/TimesMap Rubocop cop Use Array.new with a block instead of `.times.collect` / `.times.map`. See #17478 See merge request !4357
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 c27c8491126..382c7505c8b 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -1026,10 +1026,9 @@ Performance/StartWith:
Performance/StringReplacement:
Enabled: true
-# TODO: Enable TimesMap Cop.
# Checks for `.times.map` calls.
Performance/TimesMap:
- Enabled: false
+ Enabled: true
##################### Rails ##################################