Mailinglist Archive: yast-commit (1535 mails)

< Previous Next >
[yast-commit] <web-client> master : add commented metric-fu, but now it is not working
  • From: Josef Reidinger <jreidinger@xxxxxxx>
  • Date: Thu, 22 Oct 2009 17:35:58 +0200
  • Message-id: <E1N0zkF-0002KM-C0@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit f0c8ad4a50605d95078d6571d7f1880fee374bcd
Author: Josef Reidinger <jreidinger@xxxxxxx>
Date: Thu Oct 22 13:38:52 2009 +0200

add commented metric-fu, but now it is not working
---
Rakefile | 32 +++++++++++++++++++++++++++++++-
1 files changed, 31 insertions(+), 1 deletions(-)

diff --git a/Rakefile b/Rakefile
index 3916565..184c6cf 100644
--- a/Rakefile
+++ b/Rakefile
@@ -29,7 +29,7 @@ task :doc do
Dir.chdir('webclient') do
system "rake doc:app"
end
- system "cp -r webservice/doc/app doc/webservice"
+ system "cp -r webclient/doc/app doc/webclient"
puts "create plugins documentation"
plugins_names = []
Dir.chdir('plugins') do
@@ -50,3 +50,33 @@ task :doc do
puts "documentation successfully generated"
end

+=begin
+require 'metric_fu'
+MetricFu::Configuration.run do |config|
+ #define which metrics you want to use
+ config.metrics = [:churn, :saikuro, :flog, :reek, :roodi, :rcov]
#missing flay and stats both not working
+ config.graphs = [:flog, :reek, :roodi, :rcov]
+ config.flay = { :dirs_to_flay => ['webclient', 'plugins'] }
+ config.flog = { :dirs_to_flog => ['webclient', 'plugins'] }
+ config.reek = { :dirs_to_reek => ['webclient', 'plugins'] }
+ config.roodi = { :dirs_to_roodi => ['webclient', 'plugins'] }
+ config.saikuro = { :output_directory => 'scratch_directory/saikuro',
+ :input_directory => ['webclient', 'plugins'],
+ :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 = { :test_files => ['webclient/test/**/*_test.rb',
+ 'plugins/**/test/**/*_test.rb'],
+ :rcov_opts => ["--sort coverage",
+ "--no-html",
+ "--text-coverage",
+ "--no-color",
+ "--profile",
+ "--rails",
+ "--exclude /gems/,/Library/,spec"]}
+ end
+=end
+
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages