Rakefile in sequel-batches-1.0.1 vs Rakefile in sequel-batches-1.1.0
- old
+ new
@@ -1,10 +1,18 @@
# frozen_string_literal: true
require "bundler/gem_tasks"
+require "bundler/audit/task"
require "rspec/core/rake_task"
require "rubocop/rake_task"
RSpec::Core::RakeTask.new(:spec)
-RuboCop::RakeTask.new(:lint)
+RuboCop::RakeTask.new(:lint) do |t|
+ config_path = File.expand_path(File.join(".rubocop.yml"), __dir__)
+
+ t.options = ["--config", config_path]
+ t.requires << "rubocop-rspec"
+ t.requires << "rubocop-performance"
+end
+Bundler::Audit::Task.new
task default: %i[lint spec]