From 87e98a1708afc5ae093aa56fdbe26fa4d61020b4 Mon Sep 17 00:00:00 2001 From: Sarav Shah Date: Mon, 1 Oct 2018 13:15:30 -0700 Subject: [PATCH] Only load RUbocop for dev or test env --- Rakefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 262be8df..681d448f 100644 --- a/Rakefile +++ b/Rakefile @@ -5,7 +5,9 @@ require_relative 'config/application' Rails.application.load_tasks -require 'rubocop/rake_task' -RuboCop::RakeTask.new +unless Rails.env.production? + require 'rubocop/rake_task' + RuboCop::RakeTask.new +end task default: [:spec, :rubocop]