Commit 7d7624a8 authored by Eloy Durán's avatar Eloy Durán

[rake] Make more resilient against not having installed bundle.

parent 7d3fb0cc
......@@ -255,10 +255,9 @@ begin
#-- Rubocop ----------------------------------------------------------------#
require 'rubocop/rake_task'
RuboCop::RakeTask.new(:rubocop) do |task|
task.patterns = %w(lib spec Rakefile)
desc 'Check code against RuboCop rules'
task :rubocop do
sh 'bundle exec rubocop lib spec Rakefile'
end
rescue LoadError, NameError => e
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment