Exclude files in VSTS pipeline

Hi All,

I’m trying to exclude few files in VSTS pipeline but its not getting excluding. I tried below options but didn’t worked.

-Dsonar.exclusions=/node_modules/ /
/node_modules/ /

Also I tried excluding it on SonarQube dashboard giving /node_modules//* under Source File Exclusions.

Could you please help here.


What does your analysis log say about this?


Hi Ann,

Look at the logs here. I have excluded at “Prepare analysis on SonarQube”(/d:sonar.exclusions=/node_modules//*) and UI level (Analysis scope) and also at .gitignore but still giving not getting C# analysis on dashboard.