# frozen_string_literal: true
require_relative 'config/application'
Rails.application.load_tasks
desc 'Run all checks (test, lint...)'
task default: :lint
desc 'Run all code analysis tools (RuboCop...)'
task lint: :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
require 'yard'
YARD::Rake::YardocTask.new