title: How to suppress violations in PMD?
body: <p>When I run a PMD analysis I receive violation:</p>
  <blockquote>
  <p>Each class should declare at least one constructor</p>
  </blockquote>
  <p>This violation is on a Spring controller. This controller is instantiated by Spring, so I shouldn't need to invoke this class.</p>
  <p>What is recommended way of ignoring this violation?</p>
  <p>According to <a href="http://pmd.sourceforge.net/pmd-4.3/suppressing.html" rel="noreferrer">this doc</a> can use <code>//NOPMD</code> but I just want to ignore specific violation.</p>