Rakefile
# frozen_string_literal: true
require "bundler/gem_tasks"
require "rake/testtask"
Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.libs << "lib"
t.test_files = FileList["test/**/*_test.rb"]
t.warning = false
end
desc "Run rubocop"
task(:rubocop) do
require "rubocop"
RuboCop::CLI.new.run(["--config", File.join(__dir__, ".rubocop.yml")])
end
task default: %i[test rubocop]