Rakefile
# frozen_string_literal: true
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = '-r ./spec/spec_helper.rb --color'
t.verbose = false
end
RuboCop::RakeTask.new(:rubocop) do |task|
task.options = %w[--display-cop-names --format simple]
task.patterns = ['lib/**/*.rb', 'spec/**/*.rb']
end
task default: %i[spec rubocop]