xmlconfigurationmultilingualsonarqube-5.0

Analyzing a Multi-language Project in Sonar


I've followed the guidelines from SonarQube to change my project to a multi-language project.
My project has multiple modules for example:
project_name
module1
module2
module3
pom.xml

I want to run Sonar rules on my java classes as well as the pom.xml files, however only my java quality profile seem to flag broken rules.

I have removed the sonar.language setting and added the <sonar.sources>project_name</sonar.sources> but still no joy. In fact I haven't managed to break a single xml rule in my project.

I have also set the quality profiles for both xml and java in Sonar configuration.


Solution

  • It seems like the answer was to upgrade to SonarQube 5.0. I was able to setup the quality profile for XML rules within the same project as my java rules. See the documentation