There is good code, and then there is "good code". Presumably, there is a high level of understanding in your team and everyone agrees on common conventions and standards for code quality.
Once we’ve reached this agreement as a team, we must make sure all team members adhere to it as the code base of your projects evolves over time.
Checkstyle is a Java development tool to help developers adhere to coding standards. The Maven Checkstyle plugin http://maven.apache.org/plugins/maven-checkstyle-plugin/ allows developers to generate reports regarding the "code style" implemented by the team in the project source code.
The Maven Checkstyle plugin introduces two goals:
checkstyle:checkstyle: Performs analysis and generates ...