Sha256: ca56ec771f0458e5ad90970e4f39da762cfd85cca978628ef26c42ad762152fa

Contents?: true

Size: 569 Bytes

Versions: 15

Compression:

Stored size: 569 Bytes

Contents

require 'json'
require 'rubocop/rake_task'
$LOAD_PATH.unshift(__dir__)
require 'support/console'
require 'reek/rake/task'

Reek::Rake::Task.new do |t|
  t.fail_on_error = false
  t.source_files  = FileList.new('lib/**/*.rb', 'spec/**/*.rb')
end

RuboCop::RakeTask.new

task :coverage_check do
  required_percentage = 100
  percentage = JSON(File.read("#{__dir__}/../coverage/.last_run.json"))['result']['covered_percent']
  unless percentage == required_percentage
    Console.error "Expected coverage: #{required_percentage}% got: #{percentage}%"
    exit 1
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
sitehub-0.5.0.alpha12 tasks/code_quality.rake
sitehub-0.4.10 tasks/code_quality.rake
sitehub-0.5.0.alpha11 tasks/code_quality.rake
sitehub-0.5.0.alpha10 tasks/code_quality.rake
sitehub-0.5.0.alpha8 tasks/code_quality.rake
sitehub-0.5.0.alpha7 tasks/code_quality.rake
sitehub-0.5.0.alpha6 tasks/code_quality.rake
sitehub-0.5.0.alpha5 tasks/code_quality.rake
sitehub-0.5.0.alpha4 tasks/code_quality.rake
sitehub-0.5.0.alpha3 tasks/code_quality.rake
sitehub-0.5.0.alpha2 tasks/code_quality.rake
sitehub-0.4.9 tasks/code_quality.rake
sitehub-0.4.8 tasks/code_quality.rake
sitehub-0.4.7 tasks/code_quality.rake
sitehub-0.4.6 tasks/code_quality.rake