Questions tagged [metric-fu]

A Ruby gem to display metrics from various static code analyzers.

An aggregator of several static code analysis tools for Ruby. It displays code metrics from Flog, Flay, Saikuro, Churn, Reek, Roodi, Code Statistics, and Rails Best Practices (and optionally code coverage with RCov). With MetricFu, you get a combined HTML report of all the metrics.

More information on metric-fu's official wiki.

15 questions
10
votes
3 answers

Cannot install metric_fu, how to switch to simplecov?

I tried to install metric_fu against my Ruby 1.9 environment, but it failed due to the problem below: $ gem install metric_fu ... Fetching: rcov-1.0.0.gem (100%) Building native extensions. This could take a while... ERROR: Error installing…
Junichi Ito
  • 2,438
  • 1
  • 23
  • 46
9
votes
5 answers

Metric-fu in my Rails 3 app won't run

Installed metric-fu in a Rails 3 app by putting it in my Gemfile. But when I run the rake task it fails. Error below, any idea how to solve this anyone? $ rake metrics:all --trace (in /home/pma/Documents/boss-mocha) ** Invoke metrics:all…
fivetwentysix
  • 7,379
  • 9
  • 40
  • 58
8
votes
3 answers

metric_fu equivalent for ruby 1.9.x

metric_fu doesn't seem to be supported in the latest ruby kernel (1.9.2 | 1.9.3). Are there any gems which offer equivalent functionality.
priya
  • 24,861
  • 26
  • 62
  • 81
8
votes
1 answer

How to ignore some rails_best_practices gem warnings?

I am using metric_fu and rails_best_practices gems for my applications. But this time I was assigned to an old project that was under development for more than 1 year. When I used rails_best_practices gem to generate warnings, I found hundreds of…
Mahmoud Khaled
  • 6,226
  • 6
  • 37
  • 42
2
votes
1 answer

Metric Fu: RCov fails to load spec_helper

I am trying to run metric_fu on a Rails 3 application. All is good, with the exception of rcov. I have RSpec configured and my tests follow the spec/**/*.rb format and run fine in RSpec. Trying to check coverage with rcov, however, I get the…
Eric M.
  • 5,399
  • 6
  • 41
  • 67
2
votes
3 answers

Metric-Fu/Rcov "No File To Analyze"

I'm trying to get metric-fu running on a rails project I'm working with. Every time it runs the rcov portion of the metrics I get: ** Invoke metrics:all (first_time) ** Execute metrics:all No file to analyze was found. All the files loaded by rcov…
Jade Robbins
  • 163
  • 5
2
votes
1 answer

RCov doesn't work

I am currently developing a Ruby gem and want to create metrics. I am using 'metric_fu', but RCov seems to leave my specs. Here is my metric_fu configuration: MetricFu::Configuration.run do |config| config.metrics = [:churn, :saikuro,…
brainfck
  • 9,286
  • 7
  • 28
  • 29
1
vote
0 answers

Metrical metric_fu ruby1.9.2 Rails3.0 undefined method `length' for nil:NilClass

I am trying to run metric_fu with my rails 3.0 application. I have checked metrical gem to avoid dependencies problems and make it easier to setup metric_fu. I could let it work but only having one…
Mahmoud Khaled
  • 6,226
  • 6
  • 37
  • 42
1
vote
2 answers

Metric_fu - invalid byte sequence in UTF-8

Everyday at the end of the day, I run metric_fu in a RoR environment to measure the code quality. Everything worked fine until today... When I try to run metric_fu, this is my result since today. $ bundle exec metric_fu -r F,…
Ruben Ernst
  • 335
  • 2
  • 10
0
votes
1 answer

Skip files in Metric_fu Analysis

Is it possible to ignore some of my files (i.e. lib/*) in reports generated by metric_fu? I searched in the docs and others soucers and found nothing but to exclude metrics from being generated, not files from being skipped in analysis. Thanks in…
chrisandrew.cl
  • 867
  • 14
  • 30
0
votes
1 answer

Sonar Ruby Plugin - Saikuro returns no results

I'm really stuck on this one. I built the Godaddy Ruby plugin for Sonar and it seems to run fine, I can log out results from Cane and others, but at this…
fourthnen
  • 194
  • 2
  • 9
0
votes
1 answer

How to exclude some metric from metric_fu

I am using metric_fu 4.4.1 my .metrics file says: MetricFu::Configuration.run do |config| config.metrics -= [:reek] config.metrics -= [:flay] config.metrics -= [:flog] end my metric_fu.rake says: begin require 'metric_fu' rescue…
Montells
  • 6,389
  • 4
  • 48
  • 53
0
votes
1 answer

How to run metric_fu command on a specific task

rake metrics:all seems to generate all metric reports as flog,flay..etc. How to run report for a single metric (say flog) rake metrics:flog The following error occurs while running this command rake aborted! Don't know how to build task…
user1094976
0
votes
1 answer

Could not run metric:all

I get the following error, when running bundle exec rake metrics:all. I dont get clue from it. Can any one help me out. Thanks in advance. saikuro --output_directory tmp/metirc_fu/saikuro --cyclo --filter_cyclo 0 --warn_cyclo 5 --error_cyclo 7…
Jophine
  • 584
  • 1
  • 5
  • 10
-1
votes
1 answer

metrical hang when run through Jenkins

I specified to Metrical that we need to run rcov, roody, reek, stat, flog, flay. It looks like after running all the metrics, it gets stuck while generating reports. When I abort metrical pressing Ctrl+C, it prints out following…
Antony
  • 1,608
  • 1
  • 20
  • 27