23 lines
326 B
Ruby
23 lines
326 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'bundler/gem_tasks'
|
|
|
|
task default: %i[spec lint]
|
|
|
|
task lint: :rubocop
|
|
|
|
task fix: 'rubocop:auto_correct'
|
|
|
|
begin
|
|
require 'rspec/core/rake_task'
|
|
RSpec::Core::RakeTask.new
|
|
rescue LoadError
|
|
nil
|
|
end
|
|
|
|
begin
|
|
require 'rubocop/rake_task'
|
|
RuboCop::RakeTask.new
|
|
rescue LoadError
|
|
nil
|
|
end
|