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.
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)
The SonarScanner is the scanner to use when there is no specific scanner for your build system.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With