Monorepo - how to setup automatic analysis based on folder structure?

Template for a good new topic, formatted with Markdown:

  • ALM used: Azure DevOps
  • CI system used: Azure DevOps
  • Scanner command used when applicable (private details masked)
  • Languages of the repository: VB6, C++ (Visual Studio 2005), Python, Anlog-C

This is a legacy project we want to include to SonarCloud for dependency scan and in preparation of CRA.
The build process is quiet complex and therefore an auto-scan would be prefered.

  • As the repo is quiet big, it is not possible to import it as a whole - we got timeouts.
  • When we tried to add the SonarCloud tasks to the Azure Pipeline yml, the build failed as SonarCloudAnalyze@4 demands MSBuild 16 or newer - and on the build server with VB6 is only MSBuild 4 available.
  • When I now tried to set up as Monorepo with autoscan I didn’t find how to configure which directory belong to a project.

Is there any possibility to tell Autoscan which directories belong to one project and which to another?

Hi Volker,

Unfortunately, monorepos simply aren’t eligible for automatic analysis.

 
:frowning:
Ann