无法运行指标:全部

时间:2012-07-17 09:46:08

标签: ruby-on-rails metric-fu

运行bundle exec rake metrics:all时出现以下错误。我不明白它的线索。谁能帮我吗。提前谢谢。

saikuro --output_directory tmp / metirc_fu / saikuro --cyclo --filter_cyclo 0 --warn_cyclo 5 --error_cyclo 7 --formater text --input_directory app --input_directory lib /home/jophine/.rvm/gems/ruby-1.9.2-p290/gems/Saikuro-1.1.0/lib/saikuro/usage.rb:4:in require': no such file to load -- rdoc/usage (LoadError) from /home/jophine/.rvm/gems/ruby-1.9.2-p290/gems/Saikuro-1.1.0/lib/saikuro/usage.rb:4:in'     来自/home/jophine/.rvm/gems/ruby-1.9.2-p290/gems/Saikuro-1.1.0/lib/saikuro.rb:1077:in require' from /home/jophine/.rvm/gems/ruby-1.9.2-p290/gems/Saikuro-1.1.0/lib/saikuro.rb:1077:in'     来自/home/jophine/.rvm/gems/ruby-1.9.2-p290/gems/Saikuro-1.1.0/lib/saikuro.rb:1069:in <top (required)>' from /home/jophine/.rvm/gems/ruby-1.9.2-p290/gems/Saikuro-1.1.0/bin/saikuro:91:in require'     来自/home/jophine/.rvm/gems/ruby-1.9.2-p290/gems/Saikuro-1.1.0/bin/saikuro:91:in <top (required)>' from /home/jophine/.rvm/gems/ruby-1.9.2-p290/bin/saikuro:19:in load'     来自/home/jophine/.rvm/gems/ruby-1.9.2-p290/bin/saikuro:19:in <main>' from /home/jophine/.rvm/gems/ruby-1.9.2-p290/bin/ruby_noexec_wrapper:14:in eval'     来自/home/jophine/.rvm/gems/ruby-1.9.2-p290/bin/ruby_noexec_wrapper:14:in`'

1 个答案:

答案 0 :(得分:1)

您可以尝试在app根目录中添加.metrics文件,并删除Saikuro和其他人,如下所示。也许尝试在顶部使用metrical gem。

   MetricFu::Configuration.run do |config|
      config.metrics -= [:saikuro, :rcov, :roodie, :flog]
   end