Does Sonar support multiple language in same project?

余生颓废 提交于 2019-12-18 10:39:59

问题


I am setting up Sonar for one of my projects which is a mix of Groovy and Java. I am able to configure the project separately for either of these languages but not together. Is there any way to do this? I tried this

sonar.language = java,grvy

but didnt work


回答1:


UPDATE April 14th, 2014:

Starting with SonarQube 4.2, multi-language projects are supported.

This automatically happens when sonar.language is not set.

See my sample project here: https://github.com/bellingard/multi-language-project




回答2:


If you are using Sonar version 3.4. Then I have written a new maven plugin to help you with multiple language code analysis.

It is still beta

https://code.google.com/p/sonar-multilang-maven-plugin/wiki/UserGuide

If you have any issues with this tool then do let me know on that project website.




回答3:


Until https://jira.sonarsource.com/browse/SONAR-926 is implemented you can use the combination of sonar.branch and sonar.language properties to analyze separately the project languages and have two different projects in your dashboard.



来源:https://stackoverflow.com/questions/13625022/does-sonar-support-multiple-language-in-same-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!