How to exclude/ignore referenced project(s) analysis from SonarQube

Raja Moparthi picture Raja Moparthi · Sep 14, 2015 · Viewed 9.6k times · Source

I have a solution which has three projects (X,Y,Z). Z referenced in Y , Y in X . When I start Analysis with MSBuild SonarQube Runner on project X, it is analyzing Y and Z as well. Do we have any solution for ignoring recursive analysis ?

Note: I can not breakup solution file into multiple solution files & refer dll's rather than projects.

Answer

alex picture alex · Apr 27, 2018

in sonar -> administration -> General Settings -> Analysis Scope set "Source File exclusions" like that: file:**/ProjectName/* * (without spaces between * *)

https://i.gyazo.com/ad78d4db8c0bda657d67d17a9c6e78d9.png