Sonar Cloud complains about duplicates when new items are added to a list or object initializers are used

There was a new feature suggestion raised a while ago asking to be able to mark duplications as won’t fix etc, but they didn’t seem to think it would be possible and that you should just exclude the whole file from duplication analysis

https://community.sonarsource.com/t/allow-marking-duplications-as-false-positives-wont-fix/6197