Sha256: 31df574d7e9de87864a0131854879f436c882f1b1db5b1812714e538b282aabf

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 KB

Contents

MetricFu::Configuration.run do |config|
  #define which metrics you want to use
  config.metrics  = [:churn, :saikuro, :flog, :flay, :reek, :roodi, :rcov]
  config.graphs   = [:flog, :flay, :reek, :roodi, :rcov]
  config.flay     = { :dirs_to_flay => ['lib'],
    :minimum_score => 100  } 
  config.flog     = { :dirs_to_flog => ['lib']  }
  config.reek     = { :dirs_to_reek => ['lib']  }
  config.roodi    = { :dirs_to_roodi => ['lib'] }
  config.saikuro  = { :output_directory => 'scratch_directory/saikuro', 
    :input_directory => ['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.rcov     = { :environment => 'test',
    :test_files => ['test/*_test.rb'],
      :rcov_opts => ["--sort coverage", 
        "--no-html", 
        "--text-coverage",
        "--profile",
        "--exclude /gems/,/Library/,spec"]}
  config.graph_engine = :bluff
end

namespace :metrics do
TEST_PATHS_FOR_RCOV = ['test/*_test.rb']
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
smile-0.3.1 config/metric_fu_config.rb