square/cane — pull request #7 by mislav (2012-03-08 23:09:31+00:00)
Title: add facility to create a rake task for cane

Example use in Rakefile:

~~~ rb
require 'cane/rake_task'

desc "Run cane to check quality metrics"
Cane::RakeTask.new(:quality) do |cane|
cane.abc_max = 10
cane.add_threshold 'coverage/covered_percent', :>=, 99
end

task :default => :quality
~~~