On lun, 2008-02-11 at 11:55 -0800, Sebastien Pouliot wrote:
> Hello,
>
> This week is Novell's second Hack Week. Unless some big issue comes up
> I'll be able to work on Gendarme all week long :-)
>
> There's a lot of stuff that we've been talking over the last year (and
> some older than a year). I'll try to fix as many as possible this
> week.
Cool, I also have some time this week and I can help you with those
fixings :) I will be all day on IRC tomorrow.
> Now knowing that something is bad or suboptimal is a lot easier than
> knowing how to fix it (once and for all). So I'll post some of the
> things I'm doing here (since many brains are better than one). Feel
> free to comment on them, either by replying to the group or on IRC.
>
> That being said, I never been fond of MessageType which allows
> Gendarme to say if a defect is a Warning or an Error. While making
> distinctions is good, I think we're mixing two concepts into one. So I
> plan (actually I'm testing ;-) to replace it with:
Yes, I believe I have never used those values.
> * Severity: How severe is a defect found by the rule (e.g.
> UseStringEmptyRule is less severe than BadRecursiveInvocationRule).
> Some rules may vary their severity if they check for more than one
> thing (we already have rules returning Warning or Error).
It's a good idea. We could categorize the rules for severity, and if
other people uses Gendarme as code analyzer, they could spend more
effort fixing the more several issues in their code.
> and
>
> * Confidence: The level of confidence about the rule results. The more
> confidence we have also means it's less likely for the rule will
> return false positives.
It's also a nice idea. Measuring the rule's reliability may help us to
identify the rules with more false positives, and we can fix it first.
> In both case enums will be used (currently 4 values in each). This
> change should also help runners (e.g. gui) to produce better reports
> (e.g. sorted or filtered).
Yes, is the simplest solution and will work fine.
> Comments welcome!
Good work Sebastien :)
Néstor.