Sonar ignoring scala code

(Pra Jal) #1

We have multi module maven projects and also multi language projects. Currently we are using Sonarqube 6.7.4 with the Sonar maven plugin version -
If I explicitly add sonar.sources=src/main in, all the projects are getting scanned for everything under src/main including java and also only scala and java/scala. But this option is missing the scan of pom.xml file and any xml files for that project.
If I do not add sonar.sources option as src/main, then the scala files are getting ignored and only java and xml files are getting scanned.
Is there an option that I can use to get everything under that project scanned including pom.xml or any xml files, all the java and scala files ?
I am not sure what I am missing here.

Thanks !

(G Ann Campbell) #2


I guess you could set sonar.sources=. or perhaps sonar.sources=src/main,pom.xml?