Re: Create a new Complexity check

Joao Morais <[email protected]> Wed, 16 Dec 2009 09:02:35 -0200
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <[email protected]>
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