mr.nothing
mr.nothing

Reputation: 5399

Configure Sonar and maven to analyse multilingual project

I wonder if it is possible to specify different languages in the sonar-project.properties file to analyse, for example, both java script and xml, which are in the same folder?

Thanks for your help!


ADDITION

for example, I have the following project structure:

client
pom.xml
|
|-----UI
|-----pom.xml
|
|-----core
|-----pom.xml

In UI folder I have different types of files (js, html, xml) and maven java project in core folder. Can I aim sonar to UI folder so that it will check .js, .html and .xml files in this folder and subfolders recursivly? I tried to specify several languages (separated by comma) for one module, but that had no effect. Thanks!


Upvotes: 1

Views: 612

Answers (1)

Yes, this is possible. You can check out the following "web+Javascrip" sample project: https://github.com/SonarSource/sonar-examples/tree/master/projects/languages/multi-language/multi-language-source-files-in-same-directory

Please not that there are some requirements on Sonar and Sonar Runner versions (described in the README file).

Upvotes: 1

Related Questions