This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes CheckStyle in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "CheckStyle in java" Watch "CheckStyle in java" New topic
Author

CheckStyle in java

Malarvizhi Muthu
Greenhorn

Joined: Jul 07, 2008
Posts: 4
Hi,
I need to add customized checks to my project, apart from those that are in sun_checks.xml. I have gone through the link: http://checkstyle.sourceforge.net/writingchecks.html. And created a class MethodLimitChecks as per the instruction given in that page. But i getting an error like "Cannot initialise module TreeWalker: unable to instantiate MethodLimitCheck".
Could anyione post a solution for this?
Thanks in advance.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42371
    
  64
And created a class MethodLimitChecks

Cannot initialise module TreeWalker: unable to instantiate MethodLimitCheck


This looks suspicious. Or was that a typo?


Ping & DNS - my free Android networking tools app
Malarvizhi Muthu
Greenhorn

Joined: Jul 07, 2008
Posts: 4
It is MethodLimitCheck.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42371
    
  64
So it was just a typo in your post here? Or a typo in your code?
Malarvizhi Muthu
Greenhorn

Joined: Jul 07, 2008
Posts: 4
Typo in my post
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CheckStyle in java