summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-03 19:25:57 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-03 19:25:57 -0800
commit655fbc6bddb1d5f8df3e50f2896e5c6c276628b8 (patch)
tree0e513550564fda1523eade009a7a74cae42aed44 /lib/tasks
parent7b233ea853df7c13be688c0e47636d2750453f31 (diff)
downloadgitlab-ce-655fbc6bddb1d5f8df3e50f2896e5c6c276628b8.tar.gz
Dont load rubocop in prod env
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/rubocop.rake6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/tasks/rubocop.rake b/lib/tasks/rubocop.rake
index c28e529f86d..ddfaf5d51f2 100644
--- a/lib/tasks/rubocop.rake
+++ b/lib/tasks/rubocop.rake
@@ -1,2 +1,4 @@
-require 'rubocop/rake_task'
-RuboCop::RakeTask.new
+unless Rails.env.production?
+ require 'rubocop/rake_task'
+ RuboCop::RakeTask.new
+end