This repository has been archived on 2023-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
2018-11-22 19:58:12 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-11-22 19:33:08 +00:00
|
|
|
require_relative 'config/application'
|
|
|
|
|
|
|
|
Rails.application.load_tasks
|
2018-11-22 19:57:13 +00:00
|
|
|
|
|
|
|
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
|