From 9c6d61a275fa49c6932e24878682879b60c658fa Mon Sep 17 00:00:00 2001 From: Jake Scruggs Date: Wed, 6 Oct 2010 11:07:17 -0500 Subject: [PATCH] Cleaning up the internal Rakefile --- Rakefile | 38 +++++++------------------------------- 1 file changed, 7 insertions(+), 31 deletions(-) diff --git a/Rakefile b/Rakefile index c2ba8b84a..314590ed4 100644 --- a/Rakefile +++ b/Rakefile @@ -9,35 +9,11 @@ Spec::Rake::SpecTask.new(:spec) do |t| t.spec_files = FileList['spec/**/*_spec.rb'] end - MetricFu::Configuration.run do |config| - #define which metrics you want to use - # - config.metrics = [:churn, :saikuro, :flog, :flay, :reek, :roodi, :hotspots] - #config.metrics = [:churn, :hotspots] - #config.graphs = [:flog, :flay, :reek, :roodi] - config.graphs = [] - config.flay = { :dirs_to_flay => ['app', 'lib'] } - config.flog = { :dirs_to_flog => ['app', 'lib'] } - config.reek = { :dirs_to_reek => ['app', 'lib'] } - config.roodi = { :dirs_to_roodi => ['app', 'lib'], - :roodi_config => 'config/roodi_config.yml' } - config.saikuro = { :output_directory => 'scratch_directory/saikuro', - :input_directory => ['app', 'lib'], - :cyclo => "", - :filter_cyclo => "0", - :warn_cyclo => "5", - :error_cyclo => "7", - :formater => "text"} #this needs to be set to "text" - config.churn = { :start_date => "1 year ago", :minimum_churn_count => 10} - config.hotspots = { :start_date => "1 year ago", :minimum_churn_count => 10} - # config.rcov = { :test_files => ['spec/**/*_spec.rb'], -# :rcov_opts => ["--sort coverage", -# "--no-html", -# "--text-coverage", -# "--no-color", -# "--profile", -# "--rails", -# "--exclude /gems/,/Library/,spec"]} - end - +MetricFu::Configuration.run do |config| + config.metrics = [:churn, :saikuro, :flog, :flay, :reek, :roodi, :hotspots] + config.roodi = config.roodi.merge(:roodi_config => 'config/roodi_config.yml') + config.churn = { :start_date => "1 year ago", :minimum_churn_count => 10} + config.hotspots = { :start_date => "1 year ago", :minimum_churn_count => 10} +end + task :default => :spec