Sha256: 0fb42fa3dd41a0e4be0af45ae940ed7bb4e87f15bcac8d5e2527aa8e00617145
Contents?: true
Size: 676 Bytes
Versions: 11
Compression:
Stored size: 676 Bytes
Contents
begin require 'cane/rake_task' desc 'Run cane to check quality metrics' Cane::RakeTask.new(:cane_quality) do |cane| cane.add_threshold 'coverage/covered_percent', :>=, 95 cane.no_style = false cane.style_measure = 1000 cane.no_doc = true cane.abc_max = 22 end namespace :spec do task cane: %w(spec cane_quality) end rescue LoadError warn "cane not available." namespace :spec do task cane: ['spec'] end end begin require 'rubocop/rake_task' t = RuboCop::RakeTask.new t.options << '-D' rescue LoadError warn 'rubocop not available.' task rubocop: ['spec'] end namespace :spec do task quality: %w(cane rubocop) end
Version data entries
11 entries across 11 versions & 1 rubygems