The sonar.cpd.exclusions doesn't work

  • ALM used – Azure DevOps
  • CI system used – Azure DevOps
  • Scanner command used when applicable (private details masked)
    • sonar.cpd.exclusions
  • Languages of the repository – csharp
  • Steps to reproduce
    configure sonar.cpd.exclusions=Migrations/**/*

and then found duplications

inside file with Migrations in paths

Hey there.

An exclusion of Migrations/**/* assumes there is a top-level folder called Migrations, while it’s actually a subfolder.

So you probably want an exclusion closer to **/Migrations/**/*

I expected for top level /Migrations/**/*
at least for inclusions with path /src/Services/Basket/Basket.API it works like :