diversipub/Rakefile
2023-05-09 17:33:15 +04:00

24 lines
467 B
Ruby

# frozen_string_literal: true
require 'bundler/gem_tasks'
desc 'Run default checks'
task default: %i[lint]
desc 'Run code analysis tools'
task lint: %i[rubocop]
desc 'Fix code style (rubocop --auto-correct)'
task fix: 'rubocop:auto_correct'
begin
require 'rubocop/rake_task'
RuboCop::RakeTask.new
rescue LoadError
nil
end
desc 'Open development console'
task :console do
exec 'bundle', 'exec', File.expand_path(File.join('bin', 'console'), __dir__)
end