Sha256: 9bb4cb185dacc0182a2a0b329444df2558c5084a42f092fd4cedae523f979fb5
Contents?: true
Size: 676 Bytes
Versions: 6
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 = 20 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
6 entries across 6 versions & 1 rubygems