Rakefile 508 B

123456789101112131415161718192021222324
  1. require 'bundler'
  2. Bundler::GemHelper.install_tasks
  3. require 'rspec/core/rake_task'
  4. RSpec::Core::RakeTask.new(:spec)
  5. require 'rubocop/rake_task'
  6. RuboCop::RakeTask.new
  7. require 'yard'
  8. YARD::Rake::YardocTask.new
  9. require 'yardstick/rake/measurement'
  10. Yardstick::Rake::Measurement.new do |measurement|
  11. measurement.output = 'measurement/report.txt'
  12. end
  13. require 'yardstick/rake/verify'
  14. Yardstick::Rake::Verify.new do |verify|
  15. verify.threshold = 59.0
  16. end
  17. task default: [:spec, :rubocop, :verify_measurements]