Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

ant javadoc warnings on uncommented code

Thread view: 
kal stevens - 12 Jul 2006 19:23 GMT
I was wondering if it was possible to use the javadoc task in such a
way as to give a warning for missing comments?

I just wanted to make sure that I / my coworkers know when we forget to
comment their code.
Andrew T. - 12 Jul 2006 21:20 GMT
> I was wondering if it was possible to use the javadoc task in such a
> way as to give a warning for missing comments?

The docs for the JavaDoc Ant task mention it accepts an
additionalparam ..that  "Lets you add additional
parameters to the javadoc command line. "
Unfortunately, I could not see an easy way to get JavaDoc
itself to document/highlight missing comments.

..hmmm.  Perhaps a custom DocLet?

> I just wanted to make sure that I / my coworkers know when we forget to
> comment their code.

Most IDE's worth their salt will highlight missing javadoc tags.
(Just a thought.)

Andrew T.
Daniel Dyer - 12 Jul 2006 21:23 GMT
>> I was wondering if it was possible to use the javadoc task in such a
>> way as to give a warning for missing comments?
[quoted text clipped - 14 lines]
>
> Andrew T.

Another option would be to use Checkstyle with Ant.  You could even set it  
up so that the build fails if the codes isn't commented properly (perhaps  
a bit extreme).

Dan.

Signature

Daniel Dyer
http://www.dandyer.co.uk



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.