Re: Create a new Complexity check

Oliver Burn <[email protected]> Sun, 20 Dec 2009 21:29:04 +1100
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <[email protected]>
Actually the Check API does not let you know when all files have been 
processed. This is probably a deficiency in the API.

You could try a major hack and use the destroy() method, which may or 
may not work.

Regards,
Oliver

On 16/12/2009 10:02 PM, Joao Morais wrote:
> On Wed, Dec 16, 2009 at 12:15 AM, Oliver Burn<[email protected]>  wrote:
>    
>> It is possible to persist information across calls. The instance of the
>> Check is created once and used.
>> If you extend AbstractComplexityCheck, you can override beginTree() and
>> endTree() to know when processing starts and finishes. You will need to copy
>> the implementation of visitTokenHook() to determine the complexity of each
>> method.
>> Probably need to add hooks to determine package names as well.
>>      
> Hello Oliver. Thanks for your hints. Is there a way to receive a
> notification that all files was checked? The check need to compare
> methods across different classes.
>
> Joao Morais
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> Checkstyle-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/checkstyle-user
>    

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev