Sha256: deb15048946bdb24be1f37819a508b7938378874d86e361ef6877522b727ed40
Contents?: true
Size: 676 Bytes
Versions: 23
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', :>=, 80 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
23 entries across 23 versions & 2 rubygems