flog ignoring deleted files

3 views
Skip to first unread message

joshuacronemeyer

unread,
Dec 9, 2009, 7:49:37 PM12/9/09
to metric_fu
I am just getting started with metric_fu for the first time. I ran
metrics yesterday, then deleted a bunch of files from the project.
Today when metrics ran again I noticed that all the metrics except
flog reflected that change. Flog was still displaying stats about
parts of the code that had been deleted.

Here is my config:
MetricFu::Configuration.run do |config|
#removed reek because it was taking too long.
#removed saikuro because it was bombing
config.metrics = [:churn, :stats, :flog, :flay, :roodi, :rcov]
config.graphs = [:flog, :flay, :roodi, :rcov]
end

I'm not sure if this is a flog issue or is related to metric_fu,
thought I would ask here first. Deleting the scratch directory and
running again made it work, but I wonder if I need to do this every
time?

Dan Mayer

unread,
Dec 10, 2009, 10:23:46 AM12/10/09
to metric_fu
There is currently a bug in the cache used for metric_fu. Not all the
projects use this but I know that deleted files continue to show up in
flog scores.

We patched this in our fork of metric_fu, so feel free to apply this
to your metric_fu code and it should fix the deleted files issue.

http://github.com/devver/metric_fu/commit/796c901a50653a811544dc502221bd5b5afc2422

We have found another error occurring for the metric_fu cache that
also effects the flog project, but we haven't been able to isolate the
other issue and fix it yet.

Jake feel free to grab this patch and merge it in, or wait awhile and
perhaps we will be able to track down the other cache bug.

peace,
Dan Mayer
Co-founder, Devver.net (http://devver.net)
http://twitter.com/devver
http://mayerdan.com
http://twitter.com/danmayer
> --
>
> You received this message because you are subscribed to the Google Groups "metric_fu" group.
> To post to this group, send email to metr...@googlegroups.com.
> To unsubscribe from this group, send email to metric_fu+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/metric_fu?hl=en.
>
>
>

Jake Scruggs

unread,
Dec 14, 2009, 8:27:14 PM12/14/09
to metr...@googlegroups.com
Merging it in now.

-Jake
Reply all
Reply to author
Forward
0 new messages