Sha256: 7692b254bd648ab53fbd23ae7d45b53ed4388fa42d6d885832e3fe168be0b7c5

Contents?: true

Size: 1.17 KB

Versions: 5

Compression:

Stored size: 1.17 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, :rcov, :stats]
  config.churn    = { :start_date => "1 year ago", :minimum_churn_count => 10 }
  config.flay     = { :dirs_to_flay => ['lib'],
                      :minimum_score => 10,
                      :filetypes => ['rb', 'erb'] } 
  config.flog     = { :dirs_to_flog => ['lib'] }
  config.rcov     = { :environment => 'test',
                      :test_files => ["spec/**/*_spec.rb"],
                      :rcov_opts => ["--sort coverage", 
                                     "--no-html", 
                                     "--text-coverage",
                                     "--spec-only",
                                     "--no-color",
                                     "--profile",
                                     "--exclude /gems/,/Library/"]
                    }
  config.reek     = { :dirs_to_reek => ['lib'] }
  config.roodi    = { :dirs_to_roodi => ['lib'], :roodi_config => "tasks/roodi_config.yml" }
  config.graph_engine = :bluff
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sdp-0.2.4 tasks/metrics.rake
sdp-0.2.2 tasks/metrics.rake
sdp-0.2.1 tasks/metrics.rake
sdp-0.2.0 tasks/metrics.rake
sdp-0.1.0 tasks/metrics.rake