Sha256: 9c0c493c53116d5898249e5d2f5caa1b9eee6d59c7bea44914fe748b787b2ceb

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 KB

Contents

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'yaml'

################################
# Tests                        #
################################

RSpec::Core::RakeTask.new
task test: :spec

################################
# Rubocop                      #
################################

require 'rubocop/rake_task'
RuboCop::RakeTask.new(:rubocop) do |t|
  t.options = ['--config', 'rubocop.yml']
end

################################
# Documentation                #
################################

require 'yard'
YARD::Rake::YardocTask.new do |t|
  t.stats_options = ['--list-undoc']
end

yardstick_options = YAML.load_file('yardstick.yml')

require 'yardstick/rake/measurement'
Yardstick::Rake::Measurement.new(:measurement, yardstick_options) do |measurement|
  measurement.output = 'measurement/report.txt'
end

require 'yardstick/rake/verify'
Yardstick::Rake::Verify.new(:verify_measurements, yardstick_options) do |verify|
  verify.threshold = 89.0
end

################################
# Defaults                     #
################################

task default: %i[spec rubocop]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yoti-1.0.3 Rakefile