Sha256: 0ef66bb3e47e534698751ba14144b0de78be5d2766bd37b6b2a05b157a606e3e

Contents?: true

Size: 427 Bytes

Versions: 3

Compression:

Stored size: 427 Bytes

Contents

begin
  require 'cane/rake_task'

  desc "Run cane to check quality metrics"
  Cane::RakeTask.new(:quality) do |cane|
    cane.add_threshold 'coverage/covered_percent', :>=, 99
    cane.no_style = false
    cane.style_measure = 1000
    cane.no_doc = true
    cane.abc_max = 25
  end

  namespace :spec do
    task :cane => ['spec', 'quality']
  end
rescue LoadError
  warn "cane not available, quality task not provided."
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
modis-1.1.0 lib/tasks/spec.rake
modis-1.0.0 lib/tasks/spec.rake
modis-0.0.1 lib/tasks/spec.rake