I am trying to exclude a huge XML file. I am using the exclusions in the SonarCloud UI, but the exclusion is not working. I have ensured the exclusion is case sensitive, but it still doesn’t work.
The exclusion mechanism taking relative paths into account, you cannot set your exclusion pattern as **/iSAMS.Data.SqlClient/Procedures.xml.
By doing this, when the analyser will start analysing the iSAMS.Data.SqlClient withe the below basedir:
INFO: Base dir: C:\vsts-agent\agent\_work\2\s\iSAMS.Data.SqlClient
It will search for a file in the iSAMS.Data.SqlClient\iSAMS.Data.SqlClient directory.
Instead, you can put the following pattern:
**/Procedures.xml and you should get the exclusion working.
Please note that the same applies on your other exclusion patterns, I think particularly about the SqlNetTiersProviders.cs and the DataRepository.cs files.