We run checkstyle as part of our builds. Maven makes this pretty easy. Programmers are responsible for reviewing the reports and making sure their code passes before checking in. Then it is just a matter of customizing your checkstyle rules to suit the projects wishes.
Ralph
