Sha256: 8cc932c0d126f19cd193eb594d6575c7a70819153e3ea2fa18422ce2c17447b7

Contents?: true

Size: 650 Bytes

Versions: 4

Compression:

Stored size: 650 Bytes

Contents

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'reek/rake/task'
require 'rubocop/rake_task'

Reek::Rake::Task.new do |task|
  task.config_file = './config.reek'
end

begin
  require 'cane/rake_task'

  desc 'Run cane to check quality metrics'
  Cane::RakeTask.new(:quality) do |cane|
    cane.abc_max = 10
    cane.add_threshold 'coverage/.last_run.json', :>=, 100
  end

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

RSpec::Core::RakeTask.new(:spec)

RuboCop::RakeTask.new(:rubocop) do |task|
  task.patterns = ['lib/**/*.rb', 'spec/**/*.rb']
end

task default: [:spec, :quality, :reek, :rubocop]

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shellject-1.0.1 Rakefile
shellject-0.3.0 Rakefile
shellject-0.2.0 Rakefile
shellject-0.1.0 Rakefile