aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Checkstyle Configuration Issue (Javadoc comments) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Checkstyle Configuration Issue (Javadoc comments)" Watch "Checkstyle Configuration Issue (Javadoc comments)" New topic
Author

Checkstyle Configuration Issue (Javadoc comments)

H Grey
Greenhorn

Joined: Mar 06, 2011
Posts: 1
I'm new to this forum, so if I commit a posting faux pas then please let me know and I will correct it. (Edit: I just realized that I posted this in the Testing forum rather than the intended Ant, Maven and Other Build Tools forum; my apologies.)

I recently set up a Checkstyle 'checks' xml configuration file, which I wanted to check class-level Javadoc comments for @author and @version tags. Furthermore, I only wanted Checkstyle to check Javadoc comments for non-private classes.

If I add the following xml, then it successfully finds Javadocs without @author and @version, but it checks private classes as well.



I then modified the file to contain the following:



Now Checkstyle checks all non-private classes, BUT it no longer checks for the @author and @version tags. Am I missing something here?

Thank you in advance for your help.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30929
    
158

H Grey wrote:I'm new to this forum, so if I commit a posting faux pas then please let me know and I will correct it. (Edit: I just realized that I posted this in the Testing forum rather than the intended Ant, Maven and Other Build Tools forum; my apologies.)

No problem. I've moved it for you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Checkstyle Configuration Issue (Javadoc comments)