Sha256: 7865be4185ad60cdaf6cf7fd906aae71e1f1e7a5f6117e07510bc08b3b9be634

Contents?: true

Size: 681 Bytes

Versions: 11

Compression:

Stored size: 681 Bytes

Contents

# encoding: utf-8

begin
  require 'reek/rake/task'

  RBX_18_MODE = RUBY_VERSION < '1.9' && defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'

  namespace :metrics do
    Reek::Rake::Task.new do |t|
      # reek has some problems under rbx in 1.8 mode that cause the underlying
      # script to raise an exception. Rather than halt the "rake ci" process due
      # to one bug, we choose to ignore it in this specific case until reek can be
      # fixed.
      t.fail_on_error = ! RBX_18_MODE  # always true, except under rbx 18 mode
    end
  end
rescue LoadError
  task :reek do
    $stderr.puts 'Reek is not available. In order to run reek, you must: gem install reek'
  end
end

Version data entries

11 entries across 11 versions & 5 rubygems

Version Path
equalizer-0.0.3 tasks/metrics/reek.rake
adamantium-0.0.5 tasks/metrics/reek.rake
equalizer-0.0.2 tasks/metrics/reek.rake
adamantium-0.0.4 tasks/metrics/reek.rake
ice_nine-0.6.0 tasks/metrics/reek.rake
abstract_type-0.0.2 tasks/metrics/reek.rake
abstract_type-0.0.1 tasks/metrics/reek.rake
descendants_tracker-0.0.1 tasks/metrics/reek.rake
equalizer-0.0.1 tasks/metrics/reek.rake
adamantium-0.0.3 tasks/metrics/reek.rake
adamantium-0.0.2 tasks/metrics/reek.rake