From 655fbc6bddb1d5f8df3e50f2896e5c6c276628b8 Mon Sep 17 00:00:00 2001
From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Date: Tue, 3 Feb 2015 19:25:57 -0800
Subject: [PATCH] Dont load rubocop in prod env

---
 lib/tasks/rubocop.rake | 6 ++++--
 1 file 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
-- 
GitLab