Rakefile in linked-0.4.0 vs Rakefile in linked-0.5.1

- old
+ new

@@ -1,10 +1,23 @@ -require "bundler/gem_tasks" -require "rake/testtask" +# frozen_string_literal: true +require 'bundler/gem_tasks' +require 'rake/testtask' +require 'rubocop/rake_task' +require 'yard' + Rake::TestTask.new(:test) do |t| - t.libs << "test" - t.libs << "lib" + t.libs << 'test' + t.libs << 'lib' t.test_files = FileList['test/**/*_test.rb'] end -task :default => :test +RuboCop::RakeTask.new(:rubocop) + +YARD::Rake::YardocTask.new(:yard) do |t| + t.stats_options = %w[--list-undoc] +end + +desc 'Generate Ruby documentation' +task doc: %w[yard] + +task default: %w[test rubocop:auto_correct]