summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authormhasbini <mohammad.hasbini@gmail.com>2017-03-31 18:11:28 +0300
committermhasbini <mohammad.hasbini@gmail.com>2017-04-02 12:48:43 +0300
commit0a09925dcef1976970bc2674432f69d46786c38f (patch)
treef3b82c46b3050864fbd2e3331faae8ea37c3b6a3 /.rubocop.yml
parent9fc17f6f4abdb04f3cf1b60b87bd67b894a19c39 (diff)
downloadgitlab-ce-0a09925dcef1976970bc2674432f69d46786c38f.tar.gz
Enable Style/Proc cop for rubocop
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index fa1370ea1f3..ac6b141cea3 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -533,6 +533,10 @@ Style/WhileUntilModifier:
Style/WordArray:
Enabled: true
+# Use `proc` instead of `Proc.new`.
+Style/Proc:
+ Enabled: true
+
# Metrics #####################################################################
# A calculated magnitude based on number of assignments,