Sonarqube Duplications Code review question

Hi, I have a couple questions about duplication code review:

  1. In my organization, some of our pull request failed due to failed quality gate, which we surpassed the duplication threshold limit. However, not all duplications can be fixed and I wonder if there’s an option to mark them as accepted/false positive to pass the quality gate like ones for bug, vulnerability, security hotspot,…
  2. When there’s a duplication, I need to select the file and manually scroll down to search for the duplicated lines. Is there a way for Sonar to automatically jump to the duplicated lines?

Hi,

Welcome to the community!

Providing a way to ‘accept’ a duplication is something we’ve talked about for a long time, but there’s been no action so far, unfortunately.

Sorry, no.

 
Ann

Thanks, @Tat_Thanh_Mai. For your information, this relates to a more general improvement we’re currently collecting feedback on here.