lib/tasks/metric_fu.rake in p8-metric_fu-0.8.0.16 vs lib/tasks/metric_fu.rake in p8-metric_fu-0.8.2
- old
+ new
@@ -1,24 +1,20 @@
-# only load configured metrics
-MetricFu.metrics.each { |task| import "#{File.dirname(__FILE__)}/#{task}.rake" }
-
namespace :metrics do
if MetricFu::RAILS
- desc "Generate coverage, cyclomatic complexity, flog, flay, railroad, reek, roodi, stats and churn reports"
- task :all => MetricFu.metrics
+ desc "Generate coverage, cyclomatic complexity, flog, stats, duplication and churn reports"
+ task :all => [:coverage, :stats, :saikuro, :churn, :flog, :flay]
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
+ desc "Generate coverage, cyclomatic complexity, flog, duplication and churn reports"
+ task :all => [:coverage, :saikuro, :churn, :flog, :flay]
end
-
end
\ No newline at end of file