Sha256: 084afb754241aa6549863ca02225058a64d147f6fa3b7e409a0702af4fce6406
Contents?: true
Size: 760 Bytes
Versions: 3
Compression:
Stored size: 760 Bytes
Contents
# load default settings [File.expand_path('~/.metric_fu')].each do |f| load f if File.exist? f end # only load configured metrics MetricFu.metrics.each { |task| import "#{File.dirname(__FILE__)}/#{task}.rake" } namespace :metrics do if MetricFu.is_rails? desc "Generate coverage, cyclomatic complexity, flog, flay, railroad, reek, roodi, stats and churn reports" task :all => MetricFu.metrics task :set_testing_env do RAILS_ENV = 'test' end desc "Generate metrics after migrating (for continuous integration)" task :all_with_migrate => [:set_testing_env, "db:migrate", :all] else desc "Generate coverage, cyclomatic complexity, flog, flay, railroad and churn reports" task :all => MetricFu.metrics end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
p8-metric_fu-0.9.0.5 | lib/tasks/metric_fu.rake |
p8-metric_fu-0.9.0.6 | lib/tasks/metric_fu.rake |
p8-metric_fu-0.9.0.7 | lib/tasks/metric_fu.rake |