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 sonar.cpd.java.minimumtokens
or sonar.cpd.java.minimumLines
exist for code duplications (and does not seem to work, but that will be another question).
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?