Rakefile in hackerone-client-0.15.0 vs Rakefile in hackerone-client-0.16.0
- old
+ new
@@ -1,6 +1,15 @@
+# frozen_string_literal: true
+
require "bundler/gem_tasks"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
-task :default => :spec
+task default: :spec
+
+begin
+ require "rubocop/rake_task"
+ RuboCop::RakeTask.new
+rescue LoadError
+ task(:rubocop) { $stderr.puts "RuboCop is disabled" }
+end