"JCSC is a powerful tool to check source code against a highly definable coding standard and potential bad code."
http://jcsc.sourceforge.net
Also see http://pmd.sourceforge.net and http://checkstyle.sourceforge.net
Integrating JCSC results into the CruiseControl reporting page: http://jcsc.sourceforge.net/web/extensions.html#cruisecontrol