How to ignore a specific file for a specific metric; like code duplication?

So, we have a project where duplicate code is getting identified. It is actually not an unreasonable use-case so we’d like to exempt that file from that metric without having to adjust the threshold for the entire project?

Hi Scott,

In Narrowing the Focus page, you can have a general look at all ways the scope of the analysis can be configured. As written there:

You can prevent some files from being checked for duplications.

To do so, go to Project Settings > General Settings > Analysis Scope > Duplications and set the Duplication Exclusions property. See the Patterns section for more details on the syntax.

Cheers,
Daniel