How to setup sonar-project.properties if sonar.sources in mutiple folders

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube 7.9.1 , Scanner sonar-scanner-4.0.0.1744-windows, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this

There is D:\Jenkins_Node\workspace\ProjectName\sonar-project.properties file, and content include sonar.sources=*** to define the source codes direction however i have a project there are 4 different folders under this ProjectName folder and each has src folder with codes, so how to setup sonar.sources in sonar-project.properties in this condition?

Many thanks!

Hi,

Welcome to the community!

According to the docs, sonar.sources accepts “Comma-separated paths to directories containing main source files”. So you should just be able to give it a list.

 
HTH,
Ann

Many thanks for your help Ann :smiley:

A post was split to a new topic: Analysis of multi-module Maven project