SonarQube multi-module and multi-sub-folder project configuration

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 05:20:32

问题


I have a multi-module sbt project with the following structure:

parent/
 child1/
   src/
 group/
   child1/
     src/
   child2/
     src/

I need to configure SonarQube to scan all of the modules in (possibly) nested folders.

Note: I have child1 and group/child1 modules, which makes "flattening" all modules not possible. In build.sbt I use names like:

val `group-child1` = (project in (file("group/child1")))
val `child1` = (project in (file("child1")))

With a flat multi-module structure it would be easy to configure, (but not for my case) :

sonar.modules=child1,child2,...
sonar.sources=src/main
sonar.tests=src/test

But I need a configuration for deeper nested structure.

来源:https://stackoverflow.com/questions/57574433/sonarqube-multi-module-and-multi-sub-folder-project-configuration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!