[cheesecake-users] output question
grig.gheorghiu at gmail.com
Sat Jul 22 08:28:53 PDT 2006
On 7/21/06, will guaraldi <willg at bluesock.org> wrote:
> I skimmed the code and I see what Grig is talking about.
> I found some time to tinker with the code and attached a patch that
> changes the behavior to something more like what I was hoping for.
> I changed it so that advice (though I'm not sure that's the word that we
> should use--I think I'm now using it less like advice and more like, "oh,
> by the way--this is the verbose explanation of what I'm thinking while I'm
> calculating the score for this index" which I think is more in line with
> "verbose") is printed along with the index it relates to. The Cheesecake
> instance is passed into the Index instances, so the Index instances know
> whether we're in verbose mode or not. Then I adjusted _print_info_one so
> that if we're in verbose mode, it prints get_advice() in addition to
> printing out the test results.
> Then there was a minor issue in the existing advice for the
> files/directories index. _used_rules gets reset when you call
> _compute_from_rules. The problem there being that at the point we figured
> out the advice from the missing files and directories, _used_rules only
> had the used directories. So I adjusted the order of things in the
> compute method so that we capture used files and used directories.
> This is more like what I was looking for, though I don't know if it's what
> you guys have in mind. Figured it was easier to code it up than to bumble
> through more explanations of what's in me head. ;)
> Rock on!
Thanks for the patch, Will, I'll let Michal apply it. Thanks for looking
into it and coming up with a solution!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cheesecake-users