Sha256: 1bbc799d00a2280471b636c12b3c39f9a5c7f2f0ee96ff4198584b6e48f4bf87

Contents?: true

Size: 1.1 KB

Versions: 2

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 = 88.5
end

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

task default: [:spec, :rubocop]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yoti-1.0.1 Rakefile
yoti-1.0.0 Rakefile