title: How to automatically verify code follows defined coding standards
body: <p>The project I work on has a couple of internal coding standards such as (e.g.):</p>
  
  <ul>
  <li>domain classes have <code>toString()</code>, <code>hashCode()</code> and <code>equals()</code> defined</li>
  <li>domain classes have all the attributes <code>final</code></li>
  <li>constructor injection is used instead of field or setter injection</li>
  </ul>
  
  <p>Is there a tool allowing to define the above rules and enforce them at build (failing the build if there are violations of the above rules)?</p>