False report 26% of duplicate new code

We recently started having our substantial repositories of code analyzed by Sonarcloud.
Now we have a pull requests that is rejected because of 26% duplicated code, but we cannot find any kind of duplication in the code that is marked as duplications.

How can I see where Sonarcloud thinks the duplicates are?
How can I mark this as a false positive, or mark is as “Accepted” ?

This repo contains mostly Typescript files, implementing a React web app.
The file in question contains definition of all data types, fields and relationships.

a small excert of the “duplicated code”:


PvComplaint:
{
    Type: this.getType('Activity.PvComplaint')
},
PvContract:
{
    Type: this.getType('Activity.PvContract')
},
PvConversationReport:
{
    Type: this.getType('Activity.PvConversationReport')
},
PvCorrespondence:
{
    Type: this.getType('Activity.PvCorrespondence')
},
PvPostRegistration:
{
    Type: this.getType('Activity.PvPostRegistration')
},
PvThirdPartyContract:
{
    Type: this.getType('Activity.PvThirdPartyContract')
},
 

i.e. the word “PvComplaint” only appears in one other location in the code, with no duplication of the code you see here

Hi,

Duplication detection ignores the values of string literals.

To see your duplications, go to the Measures tab and drill into Duplications.

You may want to set some duplication exclusions.

 
HTH,
Ann

Drilling down from the Measurements tab got me to the code i posted above,
but where / how can is find the duplication of this code?

I solved it temporarily with an exclusion but that is not the way I want to solve this if there really is a duplication of code

Hi,

Next to the duplicated block you will see a vertical grey line in the margin. Click it to get the details of other instances of the block.

 
HTH,
Ann