MetricFu is 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.

Installing gem:

 gem install metric_fu 

Running follwing command from your application root.

 metric_fu 

This will generate reports in metric_fu's output directory (tmp/metric_fu/output).

By default, metric_fu will use the built-in html formatter to generate HTML reports for each metric with pretty graphs and output can be seen from tmp/metric_fu/output/index.html

We can customize the output directory by specifying an out directory at the command line using a relative path:

metric_fu --out custom_directory    # outputs to tmp/metric_fu/custom_directory

More info: metric_fu github link