lib/tasks/metric_fu.rake in indirect-metric_fu-0.8.2 vs lib/tasks/metric_fu.rake in indirect-metric_fu-0.9.0
- old
+ new
@@ -1,20 +1,24 @@
+# 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, stats, duplication and churn reports"
- task :all => [:coverage, :stats, :saikuro, :churn, :flog, :flay]
+ 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, duplication and churn reports"
- task :all => [:coverage, :saikuro, :churn, :flog, :flay]
+ desc "Generate coverage, cyclomatic complexity, flog, flay, railroad and churn reports"
+ task :all => MetricFu.metrics
end
+
end
\ No newline at end of file