hibernate/hibernate-search — pull request #352 by DavideD (2012-11-11 11:31:23+00:00)
Title: HSEARCH 1178 Add the checkstyle plugin

https://hibernate.onjira.com/browse/HSEARCH-1178

Hi,
my experiment with the checkstyle plugin. I use a regular expression to check that the java classes copyright header match one of the existing copyrights. The expression is not very user friendly and it would probably make sense to create a custom rule for this but it seems to work. Adding a new copyright is quite easy it just requires to escape some characters and put it in one line.

Some classes didn't have a copyright so I've added it.

The checkstyle plugin will block the build if something is wrong, this seems reasonable at the moment because the only rule applied is the header check.