Combining Python and Maven code analysis, same repository

My team is running a monorepo, which contains a maven project put in the root folder, and some python code in another one. We are trying to analyze both. if possible, we would like to have sonarqube analyze it simultaneously as being part of the same project.

However, we did not get this working. We are unable to find an option in the project settings to “add” python code to a project that has been setup as a maven project. And, when adding a new gitlab project, sonarqube states that the repository has already been added, and refers me to our already setup project.

I think a problem here, is that the project was imported as a maven project. But the python code is not part of the maven project. And is therefore not analyzed.

What are the correct steps to analyze python code and a maven project, when it is contained in the same repository, but not part of maven?

which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension)

v9.9.8 developer

how is SonarQube deployed: zip, Docker, Helm

Docker

what are you trying to achieve

see description

what have you tried so far to achieve this

See description

Thanks in advance

I think you’re looking for sonar.maven.scanAll.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.