Sha256: 9bd5c691fba25fed74998dc33ee90431213854a15926b0f92720000e7ebeb17b

Contents?: true

Size: 457 Bytes

Versions: 8

Compression:

Stored size: 457 Bytes

Contents

namespace :metrics do
  
  REEK_DIR = File.join(MetricFu::BASE_DIRECTORY, 'reek')
  REEK_FILE = File.join(REEK_DIR, 'index.html')
  
  desc "A code smell report using Reek"
  task :reek do
    mkdir_p(REEK_DIR) unless File.directory?(REEK_DIR)
    `echo '<pre>' > #{REEK_FILE}`
    `reek #{RAILS_ROOT}/test/**/*.rb #{RAILS_ROOT}/app/**/*.rb >> #{REEK_FILE}`
    `echo '</pre>' >> #{REEK_FILE}`
    system("open #{REEK_FILE}") if PLATFORM['darwin']
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
factorylabs-metric_fu-0.8.0.4 lib/tasks/reek.rake
factorylabs-metric_fu-0.8.0.5 lib/tasks/reek.rake
jayzes-metric_fu-0.8.0.1 lib/tasks/reek.rake
jayzes-metric_fu-0.8.0.2 lib/tasks/reek.rake
jayzes-metric_fu-0.8.0 lib/tasks/reek.rake
p8-metric_fu-0.8.4.1 lib/tasks/reek.rake
p8-metric_fu-0.8.4.2 lib/tasks/reek.rake
p8-metric_fu-0.8.4.3 lib/tasks/reek.rake