How to setup if sonar.sources in mutiple folders

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube 7.9.1 , Scanner sonar-scanner-, 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\ 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 in this condition?

Many thanks!


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.


Many thanks for your help Ann :smiley: