Sha256: ea0b8fd48d51067779a4ca68df8e845b744e34a2ee6ac215afd157b662dfd7e6
Contents?: true
Size: 667 Bytes
Versions: 2
Compression:
Stored size: 667 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 = 20 end namespace :spec do task :cane => ['spec', 'cane_quality'] end rescue LoadError warn "cane not available." namespace :spec do task :cane => ['spec'] end end begin require 'rubocop/rake_task' RuboCop::RakeTask.new rescue LoadError warn 'rubocop not available.' task :rubocop => ['spec'] end namespace :spec do task quality: ['cane', 'rubocop'] end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rpush-2.0.0.beta2 | lib/tasks/quality.rake |
rpush-2.0.0.beta1 | lib/tasks/quality.rake |