Sha256: 08700efa86c4737b3c56ad73800f16204ab48d4372ac632e662a428df8cc54bf

Contents?: true

Size: 1.05 KB

Versions: 6

Compression:

Stored size: 1.05 KB

Contents

require 'metric_fu'

MetricFu::Configuration.run do |config|
  #define which metrics you want to use
  config.metrics  = [:churn, :flog, :flay, :reek, :roodi, :rcov, :stats]
  config.graphs   = [:flog, :flay, :reek, :roodi]
  config.flay     = { :dirs_to_flay => ['lib'],
                      :minimum_score => 10  } 
  config.flog     = { :dirs_to_flog => ['lib']  }
  config.reek     = { :dirs_to_reek => ['lib']  }
  config.roodi    = { :dirs_to_roodi => ['lib'] }
  config.churn    = { :start_date => "1 year ago", :minimum_churn_count => 10}
  config.rcov     = { :environment => 'test',
                      :test_files => ['spec/*_spec.rb',
                                      'spec/**/*_spec.rb'],
                      :rcov_opts => ["--sort coverage", 
                                     "--no-html", 
                                     "--text-coverage",
                                     "--no-color",
                                     "--profile",
                                     "--exclude /gems/,/Library/"]}
  config.graph_engine = :bluff
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tailor-0.1.5 tasks/metrics.rake
tailor-0.1.4 tasks/metrics.rake
tailor-0.1.3 lib/tasks/metrics.rake
tailor-0.1.2 lib/tasks/metrics.rake
tailor-0.1.1 lib/tasks/metrics.rake
tailor-0.1.0 lib/tasks/metrics.rake