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

Version Path
rpush-4.0.0 lib/tasks/quality.rake
rpush-3.3.1 lib/tasks/quality.rake
rpush-3.3.0 lib/tasks/quality.rake
rpush_extended-3.2.6 lib/tasks/quality.rake
rpush_extended-3.2.5 lib/tasks/quality.rake
rpush-3.2.4 lib/tasks/quality.rake
rpush-3.2.3 lib/tasks/quality.rake
rpush-3.2.2 lib/tasks/quality.rake
rpush-3.2.1 lib/tasks/quality.rake
rpush-3.2.0 lib/tasks/quality.rake
rpush-3.1.1 lib/tasks/quality.rake
rpush-3.1.0 lib/tasks/quality.rake
rpush-3.0.2 lib/tasks/quality.rake
rpush-3.0.1 lib/tasks/quality.rake
rpush-3.0.0 lib/tasks/quality.rake
rpush-3.0.0.rc1 lib/tasks/quality.rake
rpush-2.7.0-java lib/tasks/quality.rake
rpush-2.7.0 lib/tasks/quality.rake
rpush-2.6.0-java lib/tasks/quality.rake
rpush-2.6.0 lib/tasks/quality.rake