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