-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a data structure that contains the data generated by flay.report #32
Comments
How's this? https://gist.github.com/5faab066e93cff1af161 |
flay.analyze
=> [[3800538705636364736, "Similar", :iter, "", 36, [["lib/flay.rb", 65], ["lib/flay.rb", 86]]]] Looks good! What's the |
OK. I'm not the most patient person in the world and I was having fun digging through this, so I made a bunch more changes and committed. Have at it: 461174f |
Meets the need and cleans up the code-- I like. The only thing that concerns me about it is how the analyzed result might change, and if it might be better wrapped in an struct-like-object.
|
Meh. I'm not married to the struct idea, but it is easy enough to implement. |
Done. Will be released "soon". |
Great, thanks! |
Given
flay app lib
yields the below reportmetric_fu, for example, parses this text report to yield (admittedly, not the most rigorous analysis)
The problem, is that it is not easily possible to reproduce the results of this report without either reproducing most of the code in 'report' or changing the meaning of puts and warn on the flay instance.
Now, if I were to run
ruby -rpp -rflay -e "flay = Flay.new(Flay.default_options); files = Flay.expand_dirs_to_files(%w[app lib]); flay.process(*files); flay.analyze; pp [flay.total, flay.summary, flay.masses, flay.identical]"
I getPer discussion in
The text was updated successfully, but these errors were encountered: