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 ...@@ -255,10 +255,9 @@ begin
#-- Rubocop ----------------------------------------------------------------# #-- Rubocop ----------------------------------------------------------------#
require 'rubocop/rake_task' desc 'Check code against RuboCop rules'
task :rubocop do
RuboCop::RakeTask.new(:rubocop) do |task| sh 'bundle exec rubocop lib spec Rakefile'
task.patterns = %w(lib spec Rakefile)
end end
rescue LoadError, NameError => e 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