Duplicated blocks of code must be removed

Hi I use the Version 9.5 of sonar.
I’ve been looking everywhere if it is possible to ignore portions of code (and not the entire file) from the duplicate block check.
I saw that this is not possible, the only possibility is to indicate the code as False Positive.
The doubt arises from the fact that these issues have been deprecated.
What is the correct way to ignore portions of code in duplication analysis?



Welcome to the community!

The rule and duplication detection are two different things. The rule can be removed from a profile so it doesn’t raise any more issues. But to stop duplication detection overall, set up an exclusion.