master
require 'rspec/core/rake_task' require 'rubocop/rake_task' RSpec::Core::RakeTask.new(:spec) task default: %i[rubocop spec] RuboCop::RakeTask.new(:rubocop) do |task| task.patterns = ['lib/**/*.rb', 'spec/**/*.rb'] task.fail_on_error = true end