only load rubocop rake tasks in dev/test
This commit is contained in:
parent
f287d111e8
commit
4606f58756
6
Rakefile
6
Rakefile
|
@ -2,8 +2,10 @@
|
|||
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
||||
|
||||
require File.expand_path('../config/application', __FILE__)
|
||||
require 'rubocop/rake_task'
|
||||
|
||||
RuboCop::RakeTask.new
|
||||
if Rails.env.development? || Rails.env.test?
|
||||
require 'rubocop/rake_task'
|
||||
RuboCop::RakeTask.new
|
||||
end
|
||||
|
||||
Lobsters::Application.load_tasks
|
||||
|
|
Loading…
Reference in New Issue