...
Policy repositories inherit from oparent which supports Checkstyle Plugin to ensure the code meets Java Code Style requirements. The following pages give instructions on how to setup your editor to continue to enforce.
Policy Developer Environment: Setting up Eclipse
If you do not use these editor, just a simple "mvn compile" from a command line terminal should identify checkstyle issues.