I have included SonarCloud-Analysis as Part of my Build-Pipeline in AzureDevOps.
By “ignored” I mean that the folder containing my “front-end code” (here; React.js with .js - extension) does not even show up in the “folder-view” of the “code” - explorer inside the sonarCloud Project-dashboard. This is a very likely indicator that the analysis skips my the Folder containing my “front-end” code and does not even upload it to sonarqube.
On a similar note:
However if i choose the option “standalone” - scanner than sonarCloud ONLY analyses my front-end code… which is intended since specifying more then the folder containing my front-end code results in a “failed analysis” due to the Build-agent of azuredevops (hosted vs2017) runs out of memory. To compromise for that I tried to ignore all my external dependencies and generated code (.node_modules, dist) but still does not work.
My question is now if it is possible to use the “integrate with MSBuild” in the “Prepare SonarCloud Analysis” - Task and still be able to scan the folder containing my front-end code e.g. by specifying the folders’s path with the advanced options of the “Prepare SonarCloud Analysis” - Scanner?
(by the way is it possible that I need to specify the correct location of my front-end code inside the .sln / solution file of my Project so that MSBuild “picks up” on that?)
So far I have no clue how to fix that and I would very much appreciate your help.
Thank you very much and have a nice day!