Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sonar project sub-modules

Tags:

sonarqube

Is it possible to define sub-modules on a module in the sonar-project.properties?

My current config looks like this:

sonar.projectKey=project
sonar.projectName=project
sonar.projectVersion=1.0

sonar.branch=master
sonar.sources=.
sonar.language=php

# Available modules
sonar.modules=module1, module2

# Global source directory
sonar.sources=.
sonar.language=php

# Module1
module1.sonar.projectName=Module1
module1.sonar.projectBaseDir=path/module1

# Module2
module2.sonar.projectName=Module2
module2.sonar.projectBaseDir=path/module2

But the module1 has also sub-modules.

like image 490
user3415653 Avatar asked Mar 04 '16 09:03

user3415653


People also ask

How do I set sonar project properties?

SonarQube Properties and Parameters Global analysis parameters, defined in the UI, apply to all the projects (From the top bar, go to Settings > General Settings) Project analysis parameters, defined in the UI, override global parameters (At a project level, go to Configuration > Settings)

What is SonarScanner?

The SonarScanner is the scanner to use when there is no specific scanner for your build system.

What is project key in Sonar?

projectKey is simply the unique identifier of your project inside SonarQube. You are free to choose whatever you want, as long as it is unique. Analysis Parameters is the official documentation page from Sonar, where you can find additional information about all the properties.


1 Answers

Yes it is possible...

sonar.projectKey=project
sonar.projectName=project
sonar.projectVersion=1.0

sonar.branch=master
sonar.sources=.
sonar.language=php

# Available modules
sonar.modules=module1, module2

# Global source directory
sonar.sources=.
sonar.language=php

# Module1
module1.sonar.projectName=Module1
module1.sonar.projectBaseDir=path/module1

module1.sonar.modules=subModule1

module1.subModule1.sonar.projectName=subModule1
module1.subModule1.projectBaseDir=path/subModule1

# Module2
module2.sonar.projectName=Module2
module2.sonar.projectBaseDir=path/module2
like image 84
user3415653 Avatar answered Sep 19 '22 02:09

user3415653