Skip to content

Commit

Permalink
Adding metric_fu to Rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagopradi committed Jun 14, 2010
1 parent ea72f41 commit d98faac
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Rakefile
@@ -1,6 +1,22 @@
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'lib'))
require 'rubygems'
require 'rake'
require "yaml"
require "active_support"
require 'active_support/json'
begin
require 'metric_fu'
MetricFu::Configuration.run do |config|
config.metrics = [:churn,:flay, :flog, :reek, :roodi]
config.graphs = [:flog, :flay, :reek, :roodi]
config.flay = { :dirs_to_flay => ['spec', 'lib'] }
config.flog = { :dirs_to_flog => ['spec', 'lib'] }
config.reek = { :dirs_to_reek => ['spec', 'lib'] }
config.roodi = { :dirs_to_roodi => ['spec', 'lib'] }
config.churn = { :start_date => "1 year ago", :minimum_churn_count => 10}
end
rescue LoadError
end

begin
require 'jeweler'
Expand Down

0 comments on commit d98faac

Please sign in to comment.