Duplicated Lines (%) on New Code

The issue I am facing is, “Duplicated Lines (%) on New Code”.
Is there any way I can skip or ignore the rule from Sonar admin?
Please let me know. I am not in a position to do code changes right away.

Thanks in advance.


You’re showing a metric, not a rule. There’s no way to turn off calculation of the metric. However, if the problem is that your project is failing the Quality Gate because of duplications, you could remove that condition from the Quality Gate. However, I’ll point out that this is duplications on new code. I.e. these changes are recent. Ideally, (in the future) you’ll clean this up as you go along, rather than accumulating problems for later remediation. The docs may help.