Sha256: 1bc3e0e69b3c8c00b0999fc14592db84639ee89ddc76e6eefe895404103e9ac2

Contents?: true

Size: 364 Bytes

Versions: 38

Compression:

Stored size: 364 Bytes

Contents

begin
  require 'cane/rake_task'
  require 'simplecov'

  desc 'Run cane to check quality metrics'
  Cane::RakeTask.new(:quality) do |cane|
    cane.abc_max = 10
    cane.add_threshold SimpleCov.result.covered_percent, :>=, 99
    cane.no_style = true
    cane.canefile = '.cane'
  end

rescue LoadError
  warn 'cane not available, quality task not provided.'
end

Version data entries

38 entries across 19 versions & 1 rubygems

Version Path
rgentpl-1.2.6 tasks/quality.rake
rgentpl-1.2.6 src/tasks/quality.rake
rgentpl-1.2.5 tasks/quality.rake
rgentpl-1.2.5 src/tasks/quality.rake
rgentpl-1.2.4.3 src/tasks/quality.rake
rgentpl-1.2.4.3 tasks/quality.rake
rgentpl-1.2.4.2 tasks/quality.rake
rgentpl-1.2.4.2 src/tasks/quality.rake
rgentpl-1.2.4.1 tasks/quality.rake
rgentpl-1.2.4.1 src/tasks/quality.rake
rgentpl-1.2.4 tasks/quality.rake
rgentpl-1.2.4 src/tasks/quality.rake
rgentpl-1.2.3 tasks/quality.rake
rgentpl-1.2.3 src/tasks/quality.rake
rgentpl-1.2.2 src/tasks/quality.rake
rgentpl-1.2.2 tasks/quality.rake
rgentpl-1.2.1 src/tasks/quality.rake
rgentpl-1.2.1 tasks/quality.rake
rgentpl-1.2.0 tasks/quality.rake
rgentpl-1.2.0 src/tasks/quality.rake