There’s a vertical, grey line in your screenshots between the line numbers and the code. If you mouse over it, do you get this?
In fact, string values are ignored in duplication calculation. I think what’s going on here is that you changed one line in an already-duplicated block. And that’s what’s showing up as a duplicated line in your PR.
It is stating that the blocks of code are duplicated in its entirety (lines 1-1949).
From the screenshot though, you may see that the blocks are not duplicated as one file contains the English and the other file contains the corresponding language translation.
If I am reading this correct, in the JSON files:
English
"Test": {
"Account already created": "This account has already been created.",
"Account Settings": "Account Settings"
}
Spanish
"Test": {
"Account already created": "Esta cuenta ya ha sido creada.",
"Account Settings": "Configuración de la cuenta",
}
This will be marked as duplicated, just because of the property they have? Even if the definition for each property is different?
If this is the case, then will excluding them from the scan be the only recourse for them not to be flagged?