Sha256: 7639d0a0c1c3f99513919ad7a5aaa28ec31ad068a3ba9becfebfb7496ca70754
Contents?: true
Size: 593 Bytes
Versions: 15
Compression:
Stored size: 593 Bytes
Contents
require 'bundler/gem_tasks' require 'rspec/core/rake_task' require 'rubocop/rake_task' require 'yaml' require 'yardstick/rake/verify' desc('Documentation stats and measurements') task('qa:docs') do yaml = YAML.load_file('.yardstick.yml') config = Yardstick::Config.coerce(yaml) measure = Yardstick.measure(config) measure.puts coverage = Yardstick.round_percentage(measure.coverage * 100) exit(1) if coverage < config.threshold end RuboCop::RakeTask.new('qa:code') desc('Run QA tasks') task(qa: ['qa:docs', 'qa:code']) RSpec::Core::RakeTask.new(spec: :qa) task(default: :spec)
Version data entries
15 entries across 15 versions & 6 rubygems