diff options
Diffstat (limited to 'lib/tasks/rubocop.rake')
-rw-r--r-- | lib/tasks/rubocop.rake | 6 |
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 |