Skip to content

Commit 6b1b7fd

Browse files
committed
suppress rubocop load errors
1 parent be8a0d5 commit 6b1b7fd

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Rakefile

+8-4
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ end
2323

2424
task :build => :verify_private_key_present
2525

26-
require 'rubocop/rake_task'
27-
desc 'Run RuboCop on the lib directory'
28-
RuboCop::RakeTask.new(:rubocop) do |task|
29-
task.patterns = ['lib/**/*.rb']
26+
begin
27+
require 'rubocop/rake_task'
28+
desc 'Run RuboCop on the lib directory'
29+
RuboCop::RakeTask.new(:rubocop) do |task|
30+
task.patterns = ['lib/**/*.rb']
31+
end
32+
rescue LoadError
33+
# no rubocop
3034
end

0 commit comments

Comments
 (0)