title: How to set a custom complexity limits for sonar in java?
body: <p>Is there a way to set complexity limits for sonar?
  I prefer very simple codes (at most one if or loop), but I cannot find a setting like <code>sonar.cpd.java.minimumtokens</code> or <code>sonar.cpd.java.minimumLines</code> exist for code duplications (and does not seem to work, but that will be another question).</p>
  
  <p>I would like to reduce the cyclomatic complexity limit for methods, and also the maximum number of methods in one class. For the latter, a line limit would be okay.
  How can I set those complexity limits?</p>