How can i ignore duplications in overall code?

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    9.4.0

  • what are you trying to achieve
    I want ignore duplications in overall code.

  • what have you tried so far to achieve this
    setting sonar-scanner.properties, changing Project Settings in SonarQube main page.

Here is what i tried.

proper
↑ 1. setting sonar-scanner.properties


↑ 2. setting Duplication Exclusions in [Project Settings → Analysis Scope → Duplication Exclusions]

But it didn’t work.


↑ I’ve removed Duplication option in new code setting.(In Quality Gates page)
So, in this screenShot, there is no duplication option.


I want remove duplication option in overall code, too!

Hi,

I suggest simplifying your exclusion setting: **/*

 
HTH,
Ann

OMG.

Thank you so much!!

It works!!!

1 Like