Skip to content

Commit

Permalink
Only load RUbocop for dev or test env
Browse files Browse the repository at this point in the history
  • Loading branch information
SaravShah committed Oct 1, 2018
1 parent 1a4e2d8 commit 87e98a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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]

0 comments on commit 87e98a1

Please sign in to comment.