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