require File.expand_path('../test_app/config/application', __FILE__) Rails.application.load_tasks require 'bundler/gem_tasks' require 'inch/rake' require 'rspec/core/rake_task' require 'rubocop/rake_task' require 'yard/rake/yardoc_task' namespace :lint do desc 'Lint inline documentation' Inch::Rake::Suggest.new(:docs) desc 'Lint Ruby code' RuboCop::RakeTask.new(:ruby) end task lint: %w(lint:docs lint:ruby) RSpec::Core::RakeTask.new(:spec) desc 'Generate API documentation' YARD::Rake::YardocTask.new task default: %i(lint spec)