I am trying to set up sonarserver:9.9.8- community.
I have migrated data from version 8.9.2-community and everything is working fine except for few projects which have git submodules.
Coming from 8.9.2 I assume these are ignored until and unless explicitly specified using the setting : ```
sonar.scm.exclusions.disabled = true
But the behaviour seems to be changed in v9.9.8.
Must-share information (formatted with [Markdown](https://commonmark.org/help/)):
* which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension) : SonarServer 9.9.8
* how is SonarQube deployed: Docker
* what are you trying to achieve : Migrated from version 8.9.2
* what have you tried so far to achieve this
**Do not share screenshots of logs -- share the text itself (bonus points for being well-formatted)!**
Congratulations on your recent upgrade. Unfortunately, only the latest version of SonarQube Community Build is considered active, so you’ll need to upgrade and see if the situation is still replicable before we can help you.
Thank you for your response.
I have tested this on my local with sonar version * Community Build
v25.3.0.104237
And scanner-cli 6.0
I am still seeing that submodules are getting analysed in this version as well.
Is this something we need to explicitly specify in new versions.
If yes, can you please point me to any documentation; I can take help from.
For context I tried passing sonar.scm.exclusions.disabled= false explicity to cli and this didn’t worked for me.
sonar.scm.exclusions.disabled=false is the default behavior. By default, if it’s in your e.g. .gitignore then it’s ignored by analysis. The thinking is that if you don’t want to check it in, then it’s either generated or not code to begin with.
If you want analysis not to include your submodules, then you should either set a narrower initial analysis scope or use exclusions (or perhaps inclusions but probably not both) to keep the submodules out of the analysis.
Thank you for sharing the information and helping me understand.
I’m still a bit confused, though. Coming from v8.9.2, my understanding was that if sonar.scm.exclusions.disabled=true is not specified in the sonar-project.properties file, SonarQube would, by default, not analyze the submodules.
Based on your explanation, it now seems that I need to specify the submodules folder in .gitignore to ensure SonarQube skips them during analysis.
I’m trying to understand the purpose of sonar.scm.exclusions.disabled=false when it seems that everything needs to be managed via .gitignore. Could you please clarify this for me? I appreciate your time and guidance.
The submodules I’m referring to are repositories that my code relies on to enable certain functionalities. However, I don’t check in these submodules; I typically just fetch them to update my local copy, and that’s all.
For this reason, we prefer not to include them in the analysis.