require 'rubocop/rake_task'

RuboCop::RakeTask.new

begin
  require 'rubocop/rake_task'
  RuboCop::RakeTask.new
rescue LoadError
  desc 'Disabled as RuboCop gem is unavailable'
  task :rubocop do 
    raise 'Disabled as RuboCop gem is unavailable'
  end
end

Disable Rubocop task when Rubocop gem is unavailable to fix issue in production
Disable Rubocop task when Rubocop gem is unavailable to fix issue in production

Signed-off-by: Theo Cushion <9391e8fee6b4bb857269a4f82fb270f1b8927974@pivotal.io>
